on startup gateway & dns- options in /etc/network/interfaces are not always set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
resolvconf (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
recently i have upgraded 4 VM-based systems to 16.04.1 LTS (Xenial Xerus). on startup, settings within /etc/network/
the dns- settings were a bit easier to illustrate the issue. i added a comment to /etc/resolvconf
$ cat /etc/resolvconf
# base
# 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
# tail
on startup on 1 of the systems showed this:
$ cat /etc/resolv.conf
# 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
# tail
you can see the "# base" comment wasn't added.
let me know if i can add anymore details or if this should be posted somewhere else.
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
$ apt-cache policy ifupdown
ifupdown:
Installed: 0.8.10ubuntu1.1
Candidate: 0.8.10ubuntu1.1
Version table:
*** 0.8.10ubuntu1.1 500
500 http://
100 /var/lib/
0.8.10ubuntu1 500
500 http://
$ apt-cache policy resolvconf
resolvconf:
Installed: 1.78ubuntu2
Candidate: 1.78ubuntu2
Version table:
*** 1.78ubuntu2 500
500 http://
500 http://
100 /var/lib/
Changed in resolvconf (Ubuntu): | |
status: | New → Incomplete |
Changed in ifupdown (Ubuntu): | |
status: | New → Incomplete |
Comment lines from the "base" file are always omitted from resolv.conf. Try adding a line "search bogus.com“ and see if "bogus.com" shows up on the "search" line in resolv.conf.