Siggy Brentrup wrote:
On Thu, Jul 23, 2009 at 08:27 +0200, Sven Joachim wrote:
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
I'll try that. Thanks.
But IMHO it's even better to nag the server's admin for the benefit
of fellow users.
I did that as soon as I realized the problem. It's my favorite late
night coffee shop.
Paul
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org