On Oct 30 2008, James M wrote:

>> anyone know of a command that will return all cname's for a given host?
>> or is there possibly an api (perl or php) to do the same?

>I'm talking about my in-house authoritative zones only.
>Parsing the files will not work in some cases when there are entries in the
>journal file via dynamic update.
>I can programatically freeze/unfreeze the zone but thats an awkward heavy
>handed solution.
>I believe dig or nslookup should provide this functionality.

Well, they do, in the sense that they will do zone transfers for you.
host(1) will even pick out just the CNAMEs for you:

host -l -t cname zone.example

Chris Thompson
Email: cet1@cam.ac.uk