Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-15-2006, 01:26 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
router being added to resolv.conf as nameserver

Hi there: I am a total linux newbie running debian, formerly a windows power user and trying to become a linux poweruser.

I was having a problem with dns lookups taking forever and discovered that my router had been added automatically as a nameserver in resolv.conf so I took it out, but it keeps getting added back in. what program/script is doing this and how can I change it(the other nameservers are right and for the brief period after I manually edit the router out my dns lookups work great, but that's quickly getting old)?

Old 11-15-2006, 02:17 AM   #2
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
? If you connect to your ISP via your router and DHCP is enabled.
Then DHCP will automaticly supply this Nameserver INFO to the /etc/resolve.conf
So don't remove it. If you started bind as your own DNS Server then just added it.
If you still cannot connect to the internet then check your route -n regarding a gateway entry which would be in your case i suppose the routers ip as well.
Old 11-15-2006, 03:07 AM   #3
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Does your router have it's own configuration interface, like a web page you can connect to in order to change the settings? It's possible that you can turn off the DNS cache/DNS proxy service that it's running, which would cause it to not propagate it's own IP address in the DHCP information. It seems to me you could probably also change your DHCP client settings to only get IP address/subnet mask/default gateway and not accept DNS server information from DHCP.
Old 11-15-2006, 01:44 PM   #4
LQ Newbie
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
actually, my router doesn't do any dns caching, which is (I think)why my dns lookups take a huge amount of time(the router dns lookup has to timeout before it moves on to the correct nameservers following my router in resolv.conf).

I don't think I can totally wipe the dns information retrieval from dhcp. Isn't that where I'm getting the other two(correct) nameservers from as well? I just need to stop my router from being added at the top of that list.

I'm not terribly familiar with the routing table flags, but here's the output from route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0         UG    0      0        0 eth0
I just want my router to serve the ip addresses, not act as a nameserver for my lan. Is there somewhere I can specify this as an option or micromanage the behaviour of whatever process is adding the entries to resolv.conf?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 10:21 AM
How to specify a default nameserver in /etc/resolv.con libregeek Linux - Networking 6 11-19-2005 12:41 PM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 02:52 AM
pppd: nameserver -> /etc/resolv.conf ?? tredegar Linux - Networking 6 03-21-2004 08:45 AM
router and a nameserver IcyHot Linux - General 1 10-11-2001 04:00 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration