Bug 443254 - IP address of DNS server is not saved
Summary: IP address of DNS server is not saved
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: rawhide
Hardware: i686
OS: Linux
low
high
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-19 19:54 UTC by Michal Kučera
Modified: 2008-04-28 04:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-28 04:45:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
I copied this file after network configuration (46 bytes, text/plain)
2008-04-21 16:37 UTC, Michal Kučera
no flags Details

Description Michal Kučera 2008-04-19 19:54:03 UTC
Description of problem:
It is in Fedora-9-PR-KDE-i686-20080416. When I create new configuration of
network, everything is saved except DNS IP addresses. When I run
system-config-network again IP addresses of DNS servers are blank. 



Version-Release number of selected component (if applicable):
Fedora-9-PR-KDE-i686-20080416

How reproducible:


Steps to Reproduce:
1. Set the eth0 IP addresses. Save configuration. 
2. Restart system-config-network
3. Check IP of DNS. IP addresses are blank
  
Actual results:


Expected results:


Additional info:

Comment 1 Harald Hoyer 2008-04-21 07:05:18 UTC
can you check /etc/resolv.conf immediately after saving?

Comment 2 Michal Kučera 2008-04-21 16:37:43 UTC
Created attachment 303166 [details]
I copied this file after network configuration

Comment 3 Michal Kučera 2008-04-21 16:39:03 UTC
here I attached the requested file. I copied it after configuration of network. 

Comment 4 Harald Hoyer 2008-04-21 16:59:11 UTC
# generated by NetworkManager, do not edit!

Comment 5 Dan Williams 2008-04-21 17:12:06 UTC
DNS cannot be saved in resolv.conf, because that file is volatile depending on
the specific network connections that are up at the time.  DNS needs to be
stored as DNS1, DNS2, DNS3 in the ifcfg file for the device being edited.

When we switched from reading s-c-n profiles to reading ifcfg files from
/etc/sysconfig/network-scripts, we also switched to reading DNS from the ifcfg
files rather than the profile's resolv.conf.

Can you try adding:

DNS1=<your first DNS server>
DNS2=<your second DNS server>

to your /etc/sysconfig/network-scripts/ifcfg-eth0 ?



Comment 6 Michal Kučera 2008-04-22 19:58:02 UTC
Yes, I tried it and it is ok. It works. But I think adding the DNS server should
be possible via Network manager too. And this doesn't work. In Fedora 8 it is
possible to add DNS server via Network manager. 

Comment 7 Dan Williams 2008-04-23 13:46:46 UTC
Yeah, this will be fixed in an F8 update quite soon when I rebuild the current
F9 version for F8.

Comment 8 Dan Williams 2008-04-28 04:45:26 UTC
FYI I've built the latest NM snapshot in Koji for F8 as well.


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