2

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.

Gaia
  • 1,855
  • 5
  • 34
  • 60

2 Answers2

3

Using the dig tool:

dig +nssearch google.com
Reid
  • 146
  • 4
  • 1
    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
  • 1
    @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
  • 1
    @answered thanks! now i got what i need via a [dig web interface](http://www.digwebinterface.com/?hostnames=google.com%0D%0Ayahoo.com&type=NS&colorize=on&onlyfirst=on&ns=resolver&useresolver=208.67.222.222&nameservers=) – Gaia Apr 29 '11 at 21:38
1

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

HostBits
  • 11,796
  • 1
  • 25
  • 39
  • 1
    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