[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compensating for dhcp which only provides useless dns



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.

Many thanks!  It worked perfectly, of course.

Paul




Reply to: