taming resolv.conf



Another little niggle from my recent install which doesn't seem to be
as straight forward as it should be... I hope someone can point me
at what I am doing wrong...

Immediately following my Etch 40r3 netinstall my /etc/network/interfaces
had a pretty standard looking
precision:/etc/network# grep -v '#' /etc/network/interfaces.orig
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
My /etc/resolv.conf file looked ok, except the DHCP server in my
router provides nameserver IP only, no search list.

After a bit of searching it looked like the resolvconf package would
be an simple solution, so I installed it and updated my loopback
device entry to insert the search list as follows:
auto lo
iface lo inet loopback
dns-search cthulhu.dircon.co.uk

That all worked fine, except that ever since resolvconf was
installed the nameserver address returned by the DHCP server
seems to be being installed. My new /etc/resolv.conf is
coming up as:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search cthulhu.dircon.co.uk


If I revert to the original interfaces file, /etc/resolv.conf is
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1

And if I then apt-get remove resolvconf and reboot then the original
resolv.conf with correct dhcp supplied nameserver (but no search) returns:
# generated by NetworkManager, do not edit!



nameserver 203.27.41.5


Any suggestions? I do like the idea of having any static nameserver
information in the /etc/network/interfaces file with the rest of
the network config, so resolvconf would be good if it worked as
expected....

Regards,
DigbyT


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: bind9 prevents external access
    ... I have now installed resolvconf and after rebooting resolvconf ... nameserver: 127.0.0.1 ... >> the allow-recursion part was only to filter for whom your bind will ... A fresh install should resolve names normally. ...
    (Debian-User)
  • Re: Way forward with BIND 8
    ... I hate to beg the question, but why have a nameserver in the ... If someone is running a dns cache or a dns server, ... ports is going to happen much more routinely for system administrators ... This gives people a chance to install what ...
    (freebsd-arch)
  • Re: Trouble Configuring system for NIS+
    ... > I am putting in the correct information for the name server in at the time ... The nameserver must be preconfigured with the name and IP of the new ... machine BEFORE you begin the install. ... entered and if a query fails the installation cannot continue. ...
    (comp.sys.sun.admin)
  • Re: Cant get on internet (10.2)
    ... luismg wrote: ... nameserver 80.58.0.33 ... Very smooth install, ... system worked perfectly including internet. ...
    (alt.os.linux.suse)
  • Re: Cant get on internet (10.2)
    ... nameserver 80.58.0.33 ... Very smooth install, ... system worked perfectly including internet. ... Internet is DSL via a router/modem/firewall (Zoom 5660), ...
    (alt.os.linux.suse)