dhclient not updating /etc/resolv.conf



Hi,

I lug my laptop back and forth between work, where I connect to a
ethernet cable on eth0, and home, where I use wireless on ath0. I have
two scripts that I run, depending on where I am, to reconfigure. This
works fine when I switch to the wired network, but for some reason, when
I switch back to wireless, /etc/resolv.conf stays pointed to the dns
server at work. The same scripts *used* to work, and I haven't changed
them or the files they point to, so I'm not sure what I'm doing wrong.

The script to switch to wireless is (run as root):

--8<---------------cut here---------------start------------->8---
#! /bin/bash

cd /etc/exim4/
rm /etc/exim4/update-exim4.conf.conf
ln -s sympatico.conf.conf update-exim4.conf.conf
dpkg-reconfigure -u exim4-config
--8<---------------cut here---------------end--------------->8---

The different scripts I use make symlinks to different files that differ
only in the smarthost they point to.

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.

--8<---------------cut here---------------start------------->8---
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes;

--8<---------------cut here---------------end--------------->8---

Thanks,

Tyler


--
I never loan my books, for people never return them. The only books
remaining in my library are those I’ve borrowed from others.

--unknown


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Aironet 1200/MS Radius Help - Yet Again
    ... Your collective help thus far has made me understand more about wireless ... RADIUS/IAS Server. ... I also got a certificate from verisign to install on one of the two IAS ... there are communications between the client and access ...
    (microsoft.public.internet.radius)
  • Re: Wireless Print Server - Without Connecting to Router or PC
    ... connection, Layers 1 and 2. ... wireless end points are 'clients' to an access point. ... That also brings up the question of what's a client and what's a ... Kinda reminds me of the X11 server versus client and ...
    (alt.internet.wireless)
  • Re: Multiple Wireless Access Points
    ... >>The devices are Belkin High Speed Mode Wireless G Routers. ... > the internal web server was disabled in their bridge mode. ... That means the clients are not connecting to the DHCP server. ...
    (alt.internet.wireless)
  • RE: wireless connectivity problem
    ... Is this a new installed server? ... Please also make sure the wireless router is functioning normally. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Multiple Wireless Access Points
    ... >The devices are Belkin High Speed Mode Wireless G Routers. ... the internal web server was disabled in their bridge mode. ... That means the clients are not connecting to the DHCP server. ... same /24 network is probably the desired configuration. ...
    (alt.internet.wireless)