PDA

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



oliv66
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 192.68.1.1 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,

Olivier

t0mppa
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?

MaindotC
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.

oliv66
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.

Olivier

puppywhacker
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.

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