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 712818 - resolv.conf construction may not be fully correct
resolv.conf construction may not be fully correct
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
0.9.8
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-11-21 14:51 UTC by Tomas Hozza
Modified: 2020-11-12 14:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tomas Hozza 2013-11-21 14:51:05 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.
Comment 1 Pavel Simerda 2013-11-21 15:47:01 UTC
(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
Comment 2 André Klapper 2020-11-12 14:29:54 UTC
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).