[Bug 1045616] Re: DHCP server handing out DNS server but DHCP client not loading DNS settings to client

Steve Langasek steve.langasek at canonical.com
Wed Sep 5 06:07:33 UTC 2012


> Can't manually specify the DNS server in /etc/resolv.conf because it's
> always getting overwritten.

What value is it being overwritten with?

Resolvconf certainly supports reading in DNS settings from the DHCP
server; so if you're not getting those, there must be some other source
of DNS information taking precedence - probably a local DNS server
that's installed and misconfigured such that it's talking to resolvconf
when it shouldn't be.


** Changed in: resolvconf (Ubuntu)
       Status: New => Incomplete

-- 
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/1045616

Title:
  DHCP server handing out DNS server but DHCP client not loading DNS
  settings to client

Status in “resolvconf” package in Ubuntu:
  Incomplete

Bug description:
  ARGH!!!!! Every release causes new problems >:(

  If you have:
  linux DHCP server on the network with options:
  option domain-name "xyz.com";
  option domain-name-servers 4.2.2.2, 4.2.2.3;

  In Ubuntu 10.x it works fine and pulls the DHCP client pulls the DNS
  servers from the DHCP fine.

  Ubuntu 12.x - It's broken.
  Trying to fix with: adding to /etc/network/interfaces 
  dns-nameservers 4.2.2.2 4.2.2.3
  dns-search xyz.com
  FAIL. Because you have iface eth0 inet dhcp that option isn't read

  Try and configure with Network Manager from commandline because your running a server. 
  NOPE, network manager doesn't run from CLI commandline only GUI

  Can't manually specify the DNS server in /etc/resolv.conf because it's
  always getting overwritten.

  What's the best option here? I think this might be a bug. Only option
  I haven't tried is using the head file from this description:

  Resolvconf has a /etc/resolvconf/resolv.conf.d/ directory that can contain “base”, “head”, “original” and “tail” files. All in resolv.conf format.
  base: Used when no other data can be found
  head: Used for the header of resolv.conf, can be used to ensure a DNS server is always the first one in the list
  original: Just a backup of your resolv.conf at the time of resolvconf installation
  tail: Any entry in tail is appended at the end of the resulting resolv.conf. In some cases, upgrading from a previous Ubuntu release, will make tail a symlink to original (when we think you manually modified resolv.conf in the past)

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




More information about the foundations-bugs mailing list