Bug 974898 - NetworkManager creates resolv.conf with mutually exclusive "domain" and "search" directives
Summary: NetworkManager creates resolv.conf with mutually exclusive "domain" and "sear...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-17 05:20 UTC by David Gibson
Modified: 2015-01-20 04:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-20 04:20:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Gibson 2013-06-17 05:20:20 UTC
Description of problem:

resolv.conf files created by NetworkManager always seem to have both "domain" and "search" lines, although these two directives are mutually exclusive according to the resolv.conf documentation (last one wins).

Version-Release number of selected component (if applicable):

Name        : NetworkManager
Epoch       : 1
Version     : 0.9.8.1
Release     : 3.git20130514.fc18

Actual results:

This example is simple, due to dns=dnsmasq in NetworkManager.conf, but the domain/search duplication has shown up in all other generated resolv.conf files I have seen.

# Generated by NetworkManager
domain redhat.com
search redhat.com fritz.box
nameserver 127.0.0.1

Expected results:

# Generated by NetworkManager
search redhat.com fritz.box
nameserver 127.0.0.1

Comment 1 Fedora End Of Life 2013-12-21 14:02:13 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 David Gibson 2013-12-22 22:15:14 UTC
This bug is still present in Fedora 20; updating version.

Comment 3 David Gibson 2015-01-20 04:20:23 UTC
Seems to be fixed in Fedora 21.

$ rpm -q NetworkManager
NetworkManager-0.9.10.1-1.4.20150115git.fc21.x86_64

$ cat /etc/resolv.conf 
# Generated by NetworkManager
search redhat.com fritz.box
nameserver 127.0.0.1


Note You need to log in before you can comment on or make changes to this bug.