bind 9.3.2 linux utilities

Chris Thompson cet1 at cam.ac.uk
Thu Oct 30 11:34:37 UTC 2008


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 at cam.ac.uk



More information about the bind-users mailing list