Red Hat Bugzilla – Bug 443254
IP address of DNS server is not saved
Last modified: 2008-04-28 00:45:26 EDT
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):
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
can you check /etc/resolv.conf immediately after saving?
Created attachment 303166 [details]
I copied this file after network configuration
here I attached the requested file. I copied it after configuration of network.
# generated by NetworkManager, do not edit!
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 ?
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.
Yeah, this will be fixed in an F8 update quite soon when I rebuild the current
F9 version for F8.
FYI I've built the latest NM snapshot in Koji for F8 as well.