resolv.conf file keeps getting rewritten

Matt Zimmerman mdz at
Tue Jan 25 01:56:41 CST 2005

On Mon, Jan 24, 2005 at 11:11:43PM -0800, Karl Hegbloom wrote:

> On Sun, 2005-01-23 at 11:15 -0800, Matt Zimmerman wrote:
> > I'm fairly certain that neither dhclient nor gnome-system-tools use
> > resolvconf at present, so if you tested it on Ubuntu, I assume you already
> > made the modifications?  Would you care to share them?
> It looks like 'dhcp3-client' is what's installed here.  I originally
> installed 'Warty', but have long since put 'Hoary' entries into
> "sources.list" and made Hoary higher priority in apt preferences.  It
> has 'ubuntu-base' 0.21 installed, and that depends on dhcp3-client.

"dhclient" is the name of the program which resides in the "dhcp3-client"
package.  It happens to be named "dhclient3" in Debian because two versions
of the program are available simultaneously, but its name is "dhclient".

> 'resolvconf' installs a script in /etc/dhcp3/dhclient-enter-hooks.d that
> does the right thing for that.  This is how it is designed to operate,
> and it works very well.  The resolvconf package comes with a README that
> is worth a look at.  It tells about what other packages are set up to
> use it... I suppose that an apt-cache query would also reveal this
> information.

I didn't think it could work this way, but it takes advantage of a
questionable design feature of dhclient (the hooks are sourced, rather than
executed in a subprocess) to change the behaviour of the default script by
redefining a shell function.  This can surely be done in a more robust way.

> I don't use 'gnome-system-tools' very much.  I've been around Linux so
> long... I predate it.  XEmacs is my GUI.  I tend to edit the conffiles
> by hand.  Certainly gnome-system-tools will need to become aware of
> 'resolvconf' and /etc/resolvconf.d/* is where it ought to do it's work,
> if any.

Your personal preferences aside, gnome-system-tools is the standard means to
configure network interfaces in the Ubuntu desktop, and it would be an
essential part of any integration or testing of resolvconf in Ubuntu.

 - mdz

More information about the ubuntu-devel mailing list