Re: resolv.conf changing at boot
- From: Magnus Therning <magnus@xxxxxxxxxxxx>
- Date: Wed, 24 May 2006 09:34:28 +0100
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
- References:
- resolv.conf changing at boot
- From: Don Jackson
- resolv.conf changing at boot
- Prev by Date: compile firefox.
- Next by Date: Re: Which e-mail clients can I use to access MS-Exchange servers?
- Previous by thread: Re: resolv.conf changing at boot
- Next by thread: Re: resolv.conf changing at boot
- Index(es):
Relevant Pages
|