# Tool to do batch lookup of DNS servers assigned to specific domains

While there are a handful of tools that let you drop a list of domain names and return any DNS record pertaining to those domain names, I have not been able to find a tool that returns the DNS servers assigned to each domain.

Could someone recommend a tool that would accomplish this? Windows (preferably) or Linux (command line) would work.

Thanks!

PS: not sure if this Q fits here or prowebmaster... I apologize in advance if I chose the wrong stacksite.

-
–  David d C e Freitas Oct 25 '11 at 14:59
thank you david. –  Gaia Oct 26 '11 at 16:20

Using the dig tool:

dig +nssearch google.com

-
thanks, i am aware of dig, but that is not what I am looking for as I would have to script something to batch dig. –  Gaia Apr 29 '11 at 13:58
@Gaia: dig support multiple queries by default, but there is no real separation of what result goes with what query if you are looking at it programmatically. Try dig +nssearch google.com yahoo.com to see what I mean. If you are eyeballing it, though, it usually is fairly obvious. –  Reid Apr 29 '11 at 20:00
@answered thanks! now i got what i need via a dig web interface –  Gaia Apr 29 '11 at 21:38

You could use nslookup set type=ns "domain" to query the name servers for a particular domain.

-
thanks, i am aware of nslookup, but that is not what I am looking for as I would have to script something to batch nslookup. –  Gaia Apr 29 '11 at 13:58