[Bug 1000728] Re: /etc/resolv.conf is autogenerated but the comments in the file don't say where from

Stéphane Graber stgraber at stgraber.org
Thu May 17 13:34:55 UTC 2012


As pointed out by Thomas, the comment refers to the relevant manpages
which do include a list of places where you can put your own
configuration as well as examples.

/etc/network/interfaces is only the source of DNS information for
systems that aren't using dhcp or Network Manager, so telling everyone
to go and modify it would be wrong. On a desktop system, you'll want to
tell Network Manager about it which will then forward the information to
resolvconf. For the DHCP case, you can do the dns override in
/etc/dhcp/dhclient.conf.

debian-installer automatically generates the dns- entries in /etc/network/interfaces for systems installed with the alternate installer and that don't have Network Manager, it's been doing so at least since Warty so most users should have these entries already.
Changing /etc/network/interfaces to include an example would be really difficult to do in a way that wouldn't cause potential regressions on upgrade (unless we just do it for new installs but that'd make it rather pointless and cause inconsistency).

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/1000728

Title:
  /etc/resolv.conf is autogenerated but the comments in the file don't
  say where from

Status in “resolvconf” package in Ubuntu:
  Invalid

Bug description:
  The default /etc/resolv.conf contains the following heading:

  # 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

  Which is great, but it doesn't tell users where they *should* be
  making their changes.

  That location I assume should be:
  /etc/network/interfaces

  With the format:
  dns-nameservers x.x.x.x
  dns-nameservers x.x.x.x

  But we should imho point to that file and have a commented out
  example.

  Currently running 12.04 resolvconf version 1.63ubuntu11

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1000728/+subscriptions




More information about the foundations-bugs mailing list