Bug 495027 - Switching away from a "system" connection blows away DNS entries
Summary: Switching away from a "system" connection blows away DNS entries
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-09 08:08 UTC by Braden McDaniel
Modified: 2009-04-09 13:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-09 13:41:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Braden McDaniel 2009-04-09 08:08:54 UTC
Description of problem:
Switching away from a system connection appears to blow away the DNS entries associated with that connection.

Version-Release number of selected component (if applicable):
0.7.0.99-5.git20090326.fc10

How reproducible:
Consistently.

Steps to Reproduce:
1. Start system-config-network and ensure there are entries present for DNS. Close it.
2. Switch away from, then back to a "system" connection in NetworkManager.
3. Restart system-config-network and switch to the "DNS" tab.  The entries should now be empty.

Comment 1 Dan Williams 2009-04-09 13:41:50 UTC
That's because system-config-network writes entries directly to /etc/resolv.conf.  Unfortunately, DNS information comes from multiple places and that all needs to be concatenated into /etc/resolv.conf at the time the connection is made.  When connected to a VPN or PPP, which are both transient connections, you certainly want your VPN/PPP DNS servers in /etc/resolv.conf, but you also certainly don't want them there *all the time*.

To achieve the right behavior, you probably want to add specific DNS servers to your ifcfg files (which get written by system-config-network) in /etc/sysconfig/network-scripts/.  Add DNS1=x.x.x.x and DNS2=y.y.y.y for example.  Then NetworkManager will do the right thing.


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