DHCP server handing out DNS server addresses but DHCP client does not write these to resolv.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bind9 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
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 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/
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 NetworkManager from command line because you're running a server. NOPE, NetworkManager doesn't run from CLI command line, 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
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)
Changed in bind9 (Ubuntu): | |
importance: | Undecided → Medium |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1045616/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]