Re: resolv.conf changing at boot



On Tue, May 23, 2006 at 01:03:48PM -0500, Don Jackson wrote:
After recent upgrades in etch, I found my Firefox, Thunderbird, etc.
waiting long periods for apparently DNS lookup (10-20 seconds every
time). This is happening on two different computers which were
upgraded.

I find that my original entries of two nameservers in my resolv.conf
file are being wiped out every time I boot.

I have a router (D-Link DI-604) and several computers on my LAN. The
router is 192.168.0.1. That is the address the resolv.conf file is
being changed to for nameserver on bootup. By restoring (editing) the
resolv.conf file to the proper nameservers of 214.134.xxx.yyy and
214.134.xxx.zzz. then everything works fine (no significant delay for
DNS lookup)...until next time I reboot and they're back to 192.168.0.1
in resolv.conf. (and the 214.134... entries missing).

Can anyone point me to where/what is happening here? Maybe I have a
misunderstanding of wherein the problem lies. The DI-604 router shows
the 214.134... nameservers correctly when I look at it. These are
nameservers provided by my ISP. I have not changed anything recently
that I could imagine would affect this.

(I do not have "resolvconf" installed -- as mentioned in some past
messages on this list.)

If your router is handing out IP addresses using DHCP then it might also
hand out DNS entries. That would explain why your /etc/resolv.conf keeps
being overwritten.

AFAICS you have two options:

1. Make sure your router (DHCP server) knows of the DNS you want to
use.
2. Add a script to get your DCHP client to add the DNS entries you
want. (If you use dhcp3-client then you should take a look at
/etc/dhcp3/dhclient-*-hooks.d/.)

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@xxxxxxxxxxxx Jabber: magnus.therning@xxxxxxxxx
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Most people, I think, don't even know what a Rootkit is, so why should
they care about it?
-- Thomas Hesse, president of Sony-BMG's Global Digital Business,
commenting on XCP

Attachment: pgpBwifma7dNF.pgp
Description: PGP signature



Relevant Pages

  • Re: XP Pro SP3 workstations hang on "applying computer settings"
    ... The router is a 3COM router and has entries in the main area for primary, ... I tried changing the DC to the DNS you specified, ... At that point the server could not access the internet. ... The DNS service is running on the server, but there are entries in the ...
    (microsoft.public.win2000.networking)
  • Re: Dynamic DNS & ICW
    ... always look to the router which will either forward or proxy to the ... Leaving the entries blank and relying on root hints is also valid, ... own DNS servers as often as they change their DHCP scope. ...
    (microsoft.public.windows.server.sbs)
  • Re: Changing IP address and DNS entries
    ... I take it then that you don't have a router in your system, ... it's set up like this diagram: ... I also need to update the DNS entries. ... add the new entries and remove the old entries. ...
    (microsoft.public.windows.server.sbs)
  • Re: Wireless woes (have my wireless card set up with Driverloader, am connected to my router, but no
    ... > give you an IP adderss, and several other goodies such as DNS ... > Now, since you're behind a router, you may be getting an IP address ... > from your router but it isn't serving up the DNS entries to do the ... the wireless, and further why the wireless would work behind the router ...
    (alt.os.linux.suse)
  • Re: Cable and Dynamic DNS Setup
    ... use your ISP's nameservers as forwarders. ... >But Optonline uses "Dynamic DNS". ... Or even use the router as the nameserver as most routers run their own ... Andrew Hodgson in Bromyard, Herefordshire, UK. ...
    (microsoft.public.windows.server.sbs)