How to query subdomains?

Peter Dambier peter at
Thu Jun 1 16:33:11 UTC 2006

mdavila78 wrote:
> Hi there,
> Does anybody know how to query a dns,  in order to get all subdomains
> created for a domain?

dig 'domain' axfr @nameserver

> Can you do that if you don't own the domain?

depends. If nameserver allows axfr then yes. If it does not
then it is a tradesecret the owner of 'domain' does not
want you to know.

I wonder why he does publish 'domain' in the first place. He
should better keep it in /etc/hosts

Kind regards
Peter and Karin Dambier

Peter and Karin Dambier
Cesidian Root - Radice Cesidiana
Graeffstrasse 14
D-64646 Heppenheim
+49(6252)671-788 (Telekom)
+49(179)108-3978 (O2 Genion)
+49(6252)750-308 (VoIP:
mail: peter at
mail: peter at

More information about the bind-users mailing list