After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750076 - ignores DHCP provided additional search domains
ignores DHCP provided additional search domains
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-05-29 02:24 UTC by Jamin W. Collins
Modified: 2017-06-14 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jamin W. Collins 2015-05-29 02:24:24 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.
Comment 1 Beniamino Galvani 2015-07-21 14:13:49 UTC
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.
Comment 2 Thomas Haller 2017-06-14 13:59:18 UTC
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