Re: dhclient not updating /etc/resolv.conf
- From: tyler <tyler.smith@xxxxxxxxxxxxxx>
- Date: Fri, 23 Jan 2009 09:39:35 -0400
Stefan Monnier <monnier@xxxxxxxxxxxxxxxx> writes:
I recommend you install resolvconf (maybe it's installed already) and
then you can place a script in /etc/resolvconf/update-libc.d which
will be run whenever your resolv.conf file is modified (by getting
some data from DHCP typically). I use this to automatically switch my
Postfix smarthost depending on where I am.
Thanks, I'll look into this.
Even after I explicitly call dhclient ath0 the contents of
/etc/resolv.conf stay pointed at the dns servers for my work server.
Any tips as to why this doesn't work anymore? I've posted my dhclient
config below, in case that's helpful.
No idea, have you changed dhclient's config from the stock Debian
config? Do you get an IP address via your ath0 interface?
I don't think I changed the defaults, and I do get an IP address on
ath0, but it doesn't do me any good until I manually correct the
resolv.conf file to point at the dns server on my router. The strange
thing is, dhclient *does* modify resolv.conf, changing the search line
from
search SMUNET.SMU.CA
to
search SMUNET.SMU.CA, no-domain-set.aliant
which is, it adds my home domain, but doesn't delete my work domain, and
it leaves the nameserver lines pointing at my work dns.
??
Thanks,
Tyler
--
Research is what I'm doing when I don't know what I'm doing.
--Wernher von Braun
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- References:
- dhclient not updating /etc/resolv.conf
- From: tyler
- Re: dhclient not updating /etc/resolv.conf
- From: Stefan Monnier
- dhclient not updating /etc/resolv.conf
- Prev by Date: lvm volume doesn't appear on (Nautilus) desktop?
- Next by Date: dialing modem as normal user
- Previous by thread: Re: dhclient not updating /etc/resolv.conf
- Next by thread: resolv.conf getting erased [WAS: dhclient not updating]
- Index(es):
Relevant Pages
|