Bug 446743

Summary: [PATCH] copy DNS information into ifcfg files
Product: [Fedora] Fedora Reporter: Dan Williams <dcbw>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: jmoskovc, mishu, torvalds
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.5.10-1.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-31 02:15:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Copy info from DNS page into each ifcfg file
none
patch refined none

Description Dan Williams 2008-05-15 20:10:41 UTC
NetworkManager treats resolv.conf as a composite of DNS information from each
connection, since for things like VPN you want your VPN DNS servers and domain
searches in resolv.conf when you're using the VPN but not when you aren't using
the VPN.  Therefore, resolv.conf is not stable enough to be the only source of
DNS information.

The attached patch makes system-config-network save the DNS information that the
user enters in the DNS page into each device's ifcfg file.  This will be used by
NetworkManager to ensure that after setting static DNS servers with s-c-n, that
you get a workable resolv.conf file.

When _not_ using NetworkManager, there shouldn't be any effect because the DNS
information will be the same for the ifcfg files as in /etc/resolv.conf. 
Currently Dialup devices already use DNS1/DNS2, and thus for dialup devices this
copy is not performed (though it could be).

Thoughts?

Comment 1 Dan Williams 2008-05-15 20:10:41 UTC
Created attachment 305536 [details]
Copy info from DNS page into each ifcfg file

Comment 2 Harald Hoyer 2008-05-16 10:22:30 UTC
wow, thanks very much for the patch :)

Comment 3 Harald Hoyer 2008-05-16 11:38:04 UTC
Created attachment 305675 [details]
patch refined

reduced the patch

Comment 5 Fedora Update System 2008-05-16 12:28:30 UTC
system-config-network-1.5.8-1.fc9 has been submitted as an update for Fedora 9

Comment 6 Dan Williams 2008-05-16 15:51:55 UTC
harald; do you mind if I apply to F8 branch and push as an update for F8 as well?

Comment 7 Fedora Update System 2008-05-17 22:20:24 UTC
system-config-network-1.5.8-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-network'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-4022

Comment 8 Harald Hoyer 2008-05-20 13:39:12 UTC
please test and give feedback

Comment 9 Fedora Update System 2008-05-27 13:37:26 UTC
system-config-network-1.5.10-1.fc9 has been submitted as an update for Fedora 9

Comment 10 Fedora Update System 2008-05-31 02:15:08 UTC
system-config-network-1.5.10-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.