From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071030 Fedora/2.0.0.8-2.fc8 Firefox/2.0.0.8 Description of problem: When I enter custom Primary and Secondary DNS numbers in the Network Configuration manager, I get a message saying that my changes are saved, but Fedora only retains them for the current session. As soon as I reboot I lose these settings and have to enter them again next time I start Fedora. Version-Release number of selected component (if applicable): system-config-network 1.4.3 How reproducible: Always Steps to Reproduce: 1.Select "System > Administration > Network". 2.Enter the root Username. The Network Configuration manager opens. 3.Select the DNS tab. 4.Enter a new Primary and Secondary DNS (Hostname = localhost.localdomain). 5.Select "File > Quit". Dialog appears asking if you want to save your changes. 6.Select "Yes". Message appears confirming changes have been saved. Message also prompts User to restart the network and network services or the computer. 7. Shutdown the computer. 8. Reboot the computer. 9. Log into Fedora. 10. Open the Network Configuration manager (described above). DNS entries have been reset to default. Actual Results: DNS Records are lost each time computer is shutdown. Expected Results: DNS records should have been retained. Additional info:
do you have activated DHCP (dynamic IP)?
or do you use NetworkManager?
Yes, the IP address of the computer is dynamic, supplied by my router. I want to use the dynamic IP but have static DNS records. I had this setup working in Fedora 7, but can't get it running in Fedora 8. I am using System > Administration > Network to try and set the DNS. I'm not sure if that's what you mean by "Network Manager". I am using the default Fedora Gnome desktop.
Created attachment 256871 [details] Screenshot of the interface configuration dialog _Un_check the checkbox marked in the screenshot.
Created attachment 256881 [details] Screenshot of the interface configuration dialog _Un_check the checkbox marked in the screenshot.
That fixed it. Thank you very much for your help! Can I suggest the addition of a note to "Chapter 9. Managing DNS Settings" of the Network Administration Tool documentation, to the effect that the DNS records will not hold until that check box is cleared?
I am seeing this bug with system-config-network-1.4.7-1.fc8 system-config-network-tui-1.4.7-1.fc8 I have installed but deactivated the following: pdns-recursor-3.1.4-4.fc7, NetworkManager-0.7.0-0.6.7.svn3235.fc8 NetworkManager-gnome-0.7.0-0.6.7.svn3235.fc8 NetworkManager-glib-0.7.0-0.6.7.svn3235.fc8 i.e they are configured not to start automatically. And the checkbox mentioned above is unchecked. This issue arose after I installed pdns-recursor, and could not keep the DNS set to 127.0.0.1. I would like to reopen this bug, but I don't see a check to do that with my account. I don't have the privileges to change the version in the summary, either.
After retesting, I have found I can keep the DNS information in /etc/resolv.conf if I disable NetworkManager and NetworkManagerDaemon (i.e. I stop them in the Services menu and/or uncheck their automatic start boxes). This is as expected when this bug report was closed. Of course, this means I am doing without Network Manager. In one of NM's files, /usr/share/doc/NetworkManager-0.7.0/ChangeLog, around line 75, I read the following: 2008-01-04 Dan Williams <dcbw> 74 75 * src/named-manager/nm-named-manager.c 76 - (rewrite_resolv_conf, add_ip4_config_to_named): use primary IP4Config's 77 nameservers if the secondary config doesn't have any 78 (gnome.org #346833) In other words, there is code in NM to alter the contents of /etc/resolv.conf, and I see no way to disable that behaviour, unlike the situations in comment #5 and comment #6. So, my temporary workaround is to keep NM disabled. In the long term, I would like to see configuration menus that would be less confusing, and that would allow selective configuration of pdns-recursor in the system-config-network menu, for example.
In my (Fedora 14) case the checkbox did not seem to have any effect, /sbin/dhclient-script ignores overwrite /etc/resolv.conf systematically. The only way I could make dhclient-script not override the DNS tab is like this: echo PEERDNS=no >> /etc/sysconfig/network Note: I do not even have NetworkManager installed.