Is there a way to list all hosts for a domain?

Kevin Darcy kcd at daimlerchrysler.com
Thu Jan 18 01:02:37 UTC 2001


Dan Star wrote:

> Hi,
>
> Is there a way to list all hosts for a domain?

A domain, of course, can consist of one or more "zones". In order to
list the contents of an entire *zone*, you need to a) be able to access
an authoritative server for the zone and b) be permitted to do "zone
transfers" of the zone. If those prerequisites are satisfied, then issue
a query of type "axfr" to the authoritative server using "dig" or -- if
you must -- use some form of the "ls" command in
"nslookup".
- Kevin





More information about the bind-users mailing list