bind9 RESOLVCONF does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bind9 (Debian) |
Fix Released
|
Unknown
|
|||
bind9 (Ubuntu) |
Fix Released
|
High
|
Robie Basak |
Bug Description
Under 16.04, /etc/default/bind9 contains a RESOLVCONF option which appears not to work with systemd.
Under 14.04, setting RESOLVCONF="yes" in /etc/default/bind9 caused bind9 to be installed as a local resolver. This is done by lines 65-68 of the (16.04) /etc/init.d/bind9.
As far as I can tell, this is broken in 16.04 because systemd is used to start bind9 instead. This appears not to execute those lines (even '/etc/init.d/bind9 start' appears to be subverted judging by 'sh -x' output), and - again as far as I can tell - nothing is calling resolvconf instead. This appears to mean that bind9 no longer can install itself as a resolver, which is a pain.
There may be some systemd specific way of doing this, but I don't know what it is.
affects: | nbd (Ubuntu) → bind9 (Ubuntu) |
Changed in bind9 (Ubuntu): | |
importance: | Undecided → High |
tags: | added: server-next |
Changed in bind9 (Debian): | |
status: | Unknown → New |
Changed in bind9 (Ubuntu): | |
assignee: | nobody → Robie Basak (racb) |
tags: | removed: server-next |
Changed in bind9 (Debian): | |
status: | New → Fix Released |
Changed in bind9 (Debian): | |
status: | Fix Released → New |
Changed in bind9 (Debian): | |
status: | New → Fix Released |
This may explain it:
root@shed2:~# systemctl list-units --all | egrep 'bind9|resolv' op.resolve1. busname loaded inactive dead Network Name Resolution Service Bus Name networkd- resolvconf- update. path loaded inactive dead Trigger resolvconf update for networkd DNS resolvconf. service loaded inactive dead local BIND via resolvconf service loaded active exited Nameserver information manager networkd- resolvconf- update. service loaded inactive dead Update resolvconf for networkd DNS resolved. service loaded inactive dead Network Name Resolution .resolve1. busname static networkd- resolvconf- update. path static service disabled f.service enabled freedesktop. resolve1. service disabled networkd- resolvconf- update. service static resolved. service disabled
org.freedeskt
systemd-
bind9-
bind9.service loaded active running BIND Domain Name Server
resolvconf.
systemd-
systemd-
root@shed2:~# systemctl list-unit-files --all | egrep 'bind9|resolv'
org.freedesktop
systemd-
bind9-pkcs11.
bind9-resolvcon
bind9.service enabled
dbus-org.
resolvconf.service enabled
systemd-
systemd-
Note bind9-resolvcon f.service is 'loaded inactive dead'
bind9-resolvcon f.service was disabled, but even enabling it did not fix it.
Perhaps this is the cause: /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 744304
https:/
as RemainAfterExit=yes is not present in /lib/systemd/ system/ bind9-resolvcon f.service