Re: dhclient not updating /etc/resolv.conf



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



Relevant Pages

  • Re: dhclient not updating /etc/resolv.conf
    ... I recommend you install resolvconf and ... script to be run when dhclient gets an answer. ... have you changed dhclient's config from the stock ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • DNS forwarding fails
    ... DNS is configured to forward queries to external public DNS servers. ... Now the problem is MAC2 does not forward MX queries from MAC1 to the public ... There seems to be no problem with routing (network config), ...
    (microsoft.public.win2000.dns)
  • Dynamic DNS, with mail DNS
    ... I am facing a problem in configuring a Sendmail and DNS servers with a ... ADSL line to work with my other seperately loacted DNS ... 2).How can I config (edit the sendmail.cf file, ...
    (RedHat)
  • ADSL and mail DNS
    ... I am facing a problem in configuring a Sendmail and DNS servers with a ... ADSL line to work with my other seperately loacted DNS ... 2).How can I config (edit the sendmail.cf file, ...
    (RedHat)
  • Re: Windows loses DNS capability periodically - reboot fixes
    ... while within the first twelve hours of a twenty-four hour lease.. ... I'll try setting the DNS values in my TCP/IP config - currently set to ... find out the DNS servers used by your ISP (they ay appear ... on the router config pages) and enter them in the computer TCP/IP ...
    (microsoft.public.windowsxp.network_web)