find all hosts in a domain?

Will Yardley &- at
Sat Oct 2 00:34:03 UTC 2004

On 2004-10-01, peter <nospam at> wrote:

> Given an domain like, how do I find all the publicly known 
> hosts in the same domain (e.g.,, ...)?
> I imagine some DNS server would contain this info.

If the authoritative DNS server(s) for the zone allows zone transfers,
you can use a tool like dig, host, or nslookup to transfer the entire

dig axfr
(this will fail)

However most sites don't allow AXFR to hosts outside their network, or
hosts that don't need to be able to do zone transfers.

However, if transfers are refused, there's no easy way to do what you
ask, though there are probably some methods you could use to find most
or a lot of them in some cases.

More information about the bind-users mailing list