resolv.conf file keeps getting rewritten
Karl Hegbloom
hegbloom at pdx.edu
Tue Jan 25 01:11:43 CST 2005
On Sun, 2005-01-23 at 11:15 -0800, Matt Zimmerman wrote:
> On Sun, Jan 23, 2005 at 10:48:06AM -0800, Karl Hegbloom wrote:
>
> > Both 'dnsmasq' and 'resolvconf' seem to integrate very will with Ubuntu
> > so far. I've been using them for quite a while, and everything Just
> > Works.
>
> 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.
'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 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.
A tool to configure 'dnsmasq' ought to be added as well, should it
become a default part of the network configuration. It has a nice
little dhcp server that can be used to serve IP's for user mode linux or
a local network. That dhcp server is disabled by default. dnsmasq
uses /etc/hosts as it's source for local IP's. It is integrated with
the resolvconf system, and puts 127.0.0.1 as the first name server.
That's how it hooks in to become the cacheing name server. When DNS
lookups tend to lag a second or two, it's nice to have a local one.
More information about the ubuntu-devel
mailing list