GNOME Bugzilla – Bug 712818
resolv.conf construction may not be fully correct
Last modified: 2020-11-12 14:29:54 UTC
Hi. While playing with my Fedora 19 with NetworkManager-0.9.8.8-1.fc19.x86_64 I found out that there is difference between information written into /etc/resolv.conf and information available through nmcli. /etc/resolv.conf domain brq.redhat.com search brq.redhat.com redhat.com eng.brq.redhat.com lab.eng.brq.redhat.com englab.brq.redhat.com brq.redhat.com. nameserver <ip1> nameserver <ip2> "nmcli -f IP4,IP6 dev list" output: ... IP4.DOMAIN[1]: brq.redhat.com IP4.DOMAIN[2]: redhat.com IP4.DOMAIN[3]: eng.brq.redhat.com IP4.DOMAIN[4]: lab.eng.brq.redhat.com IP4.DOMAIN[5]: englab.brq.redhat.com ... DHCP4.OPTION[14]: domain_search = brq.redhat.com. redhat.com. ... DHCP4.OPTION[20]: domain_name = brq.redhat.com redhat.com eng.brq.redhat.com lab.eng.brq.redhat.com englab.brq.redhat.com ... You can notice that: 1. domain name and search domain obtained from DHCP4 are different than written into resolv.conf 2. "brq.redhat.com" is written twice in the search statement in resolv.conf 3. 'man resolv.conf' says "The domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance wins.". This means that NM should decide which one to use.
(In reply to comment #0) > You can notice that: > 1. domain name and search domain obtained from DHCP4 are different than written > into resolv.conf Sounds like `domain` is also repeated in `search` which isn't necessarily wrong but certainly needs more investigation. > 2. "brq.redhat.com" is written twice in the search statement in resolv.conf Sound wrong but not particularly fatal. > 3. 'man resolv.conf' says "The domain and search keywords are mutually > exclusive. If more than one instance of these keywords is present, the last > instance wins.". This means that NM should decide which one to use. +1
bugzilla.gnome.org is being shut down in favor of a GitLab instance. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/ Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).