Comment 12 for bug 8634

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 19 Sep 2002 11:23:39 -0400
From: Matt Zimmerman <email address hidden>
To: Tim Connors <email address hidden>, <email address hidden>
Subject: Re: Bug#159529: dhcp3-client: dhclient-script only sets resolv.conf when both
 new_domain_name and new_domain_name_servers exist

On Fri, Sep 20, 2002 at 01:11:48AM +1000, Tim Connors wrote:

> I just installed dhcp-client, and set it up to work on the network here.
> It overwrote my resolv.conf file, which I thought was an extremeyl rude
> thing to do. I search the Debian bugs, and realised that maybe
> dhcp3-client fixes this up. But no - your post points me to the fact that
> make_resolv_conf still, unbelievably, overwrite the resolv.conf file,
> without asking the user, and without making a backup.

This is expected behaviour if your DHCP server supplies DNS server
addresses. A DHCP client is expected to configure the system to use those
DNS servers by default.

> I want my resolv.conf to have a predefined search path, no matter what
> network I am on, and I want it to look at 127.0.0.1 as a nameserver. If
> instalation of dhcp{,3}-client is going to overwrite my settings, the
> least it can do is warn me at install time - I wasn't exactly expecting to
> lose my settings!

Add a line:

prepend domain-name-servers 127.0.0.1;

to /etc/dhcp3/dhclient.conf (or /etc/dhclient.conf for dhcp 2.x).

--
 - mdz