GNOME Bugzilla – Bug 750076
ignores DHCP provided additional search domains
Last modified: 2017-06-14 13:59:18 UTC
On the DHCP sever: $ sudo grep '^option domain' /etc/dhcp/dhcpd.conf option domain-name "asgardsrealm.net"; option domain-search "local", "seattle", "asgardsrealm.net"; On the workstation: $ NetworkManager --version 1.0.2 $ sudo grep '^dns' /etc/NetworkManager/NetworkManager.conf dns=dnsmasq $ grep search /etc/resolv.conf search asgardsrealm.net The results are the same with dns=default in NetworkManager.conf However, when using dhclient directly (instead of NetworkManager) $ grep search /etc/resolv.conf search local seattle asgardsrealm.net I know I can supply additional search domains in the local workstation configuration, but the point of DHCP is to configure all of that information in one central location.
Which DHCP client is NetworkManager using? You can see it with: grep dhcp /etc/NetworkManager/NetworkManager.conf I can reproduce the behavior you reported using dhcp=internal, so maybe you can try to switch to dhcp=dhclient as a temporary workaround. It seems that the internal DHCP client doesn't support the domain search option (119), we should improve it.
With bug 783785 (commit [1]), the internal DHCP client supports the domain search list as well. To my knowledge, DHCP search domains work and there is nothing left to do. If you still have issues, please open a new bug and provide detailed information. (note that this will only be in NetworkManager version 1.9 or newer). [1] https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=bd59b8ddf4fd954fa127123a42f3dd0e8b6eea73