On Thu, Jul 23, 2009 at 08:27 +0200, Sven Joachim wrote: > On 2009-07-23 07:50 +0200, Paul Scott wrote: > > > I have a new install of sid on a laptop with a new hard drive. The > > wireless works fine except at one location where my guess is that the > > DNS is not set up correctly. I work around this by adding useable > > nameserver addresses to /etc/resolv.conf. I don't have resolvconf > > installed but I haven't figured out how /etc/resolv.conf is being > > overwritten or where I can put the working nameserver addresses so the > > automatic detection of this particular AP will use them. > > The /etc/resolv.conf file is rewritten by dhclient, you can use the > "prepend" statement in /etc/dhcp3/dhclient.conf to supply other > nameservers, e.g. > > prepend domain-name-servers 192.0.2.1,192.0.2.42; > > will result in two nameserver entries in /etc/resolv.conf: > > nameserver 192.0.2.1 > nameserver 192.0.2.42 > > that are put before the entry that is obtained from the DHCP server.
That's a good start with the drawback that these lines are prepended even when the dhcp server provides working DNS. As is the OP should add a script editing /etc/resolv.conf depending on location to /etc/dhcp3/dhclient-{enter,exit}-hooks.d But IMHO it's even better to nag the server's admin for the benefit of fellow users. my 2ยข Siggy -- Please don't Cc: me when replying, I might not see either copy. bsb-at-psycho-dot-informationsanarchistik-dot-de or: bsb-at-psycho-dot-i21k-dot-de O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
signature.asc
Description: Digital signature