View Full Version : [ubuntu] primary & secondary DNS server + dig

July 1st, 2009, 08:21 PM
Hi all,

I have a modem/router/switch. My router is also my DHCP server even though I choosed a fixed IP address for one computer.

under /etc/resolv.conf I can see which is the address of my gateway, not the address of my provider's DNS server

I would like to know the iP addresses of my DNS servers. I know how to find that information through my gear but not with dig or nslookup.

I tried dig @ns.myprovider.com + a few more options with no success.

How could I get the real IP adresses of my provider's primary & secondary DNS servers ?

Thanks for your help,


July 2nd, 2009, 02:22 AM
Well, I don't know about dig or nslookup and while learning the workings of new commands is always enlightening, just seems you're going at it the hard way. Why not simply check your routers configuration? The servers should be listed there. Or if you can't find them there, then just calling your ISP's tech support and asking them for the IP's?

July 2nd, 2009, 02:55 AM
The ISP's nameserver information should be in your access point (that's the proper name for this thing you call "modem/router/switch"). Just log into the access point and find the information it receives via DHCP.

July 2nd, 2009, 03:45 PM
Thanks for your reply.

Yes, I have my DNS servers through my Modem/router but I thought it was possible to collect with dig.


July 2nd, 2009, 05:04 PM
the resolver never knows the real DNS server from your provider, it uses the access points dns-proxy instead.

July 2nd, 2009, 06:04 PM
many thanks for this clarification.