November 29th, 2011, 09:17 AM
Is there a way to query a name server for all dns records within a zone. for example get all dns records for test.com and its subdomains
November 30th, 2011, 09:28 AM
From Windows, open a command prompt, type NSLOOKUP and hit [enter]. At the prompt, type "ls -d domainname".
This will display all of the records in the zone, including subdomains, if the subdomain records are hosted in the same zone file. If there is a delegation to the subdomain, the records will not be in the zone. You would have to do this same procedure for the subdomain.
For you to pull the records from NSLOOKUP in this manner, your DNS zone has to be configured to allow for zone transfers.