2016-10-20 13:52:50 |
Martin Pitt |
description |
Search domains specified in networkd do not get propagated to /etc/resolv.conf via resolved in xenial, as systemd-networkd-resolvconf-update.service only tells resolvconf about DNS servers. This is not an issue any more in yakkety and zesty as that uses resolved and that unit is gone.
This was uncovered while working on adding nameserver support to netplan, in bug 1626617. To fully support netplan/networkd in xenial we should fix this. |
Search domains specified in networkd do not get propagated to /etc/resolv.conf via resolved in xenial, as systemd-networkd-resolvconf-update.service only tells resolvconf about DNS servers. This is not an issue any more in yakkety and zesty as that uses resolved and that unit is gone.
This was uncovered while working on adding nameserver support to netplan, in bug 1626617. To fully support netplan/networkd in xenial we should fix this.
SRU TEST CASE:
* Start a xenial VM or container, and create a networkd interface with a DNS server and search domain:
$ cat /etc/systemd/network/foo.netdev
[NetDev]
Name=foo
Kind=dummy
$ cat /etc/systemd/network/foo.network
[Match]
Name=foo
[Network]
DNS=1.2.3.4
Domains=kitchen cellar
* sudo systemctl restart systemd-networkd
* cat /etc/resolv.conf
resolv.conf should have "nameserver 1.2.3.4" (unless there already are three nameservers), but with the current xenial version it lacks "search kitchen cellar". With the -proposed version, both entries should be there.
REGRESSION POTENTIAL: This makes the shell hack of systemd-networkd-resolvconf-update.service even worse, so errors in it could break the existing "nameserver" integration of networkd with resolved. On xenial this is only really relevant with netplan and snappy (see bug 1626617), so the number of installations that actually use this in the field should be low. But this is simple enough to test in isolation, systemd's autopkgtest already cover the "nameserver" resolvconf integration, and netplan's autopkgtest now cover both "nameserver" and "search". So overall the regression potential is very limited. |
|