Comment 6 for bug 60518

Revision history for this message
Norbert (norbert79) wrote : Re: [network-admin] /etc/resolv.conf gets clobbered when the OK button is pressed

I can confirm this as an existing problem. In my case, I used DNS Suffixes because of special circumtances. When I use Gnome-Network, it updates the /etc/resolv.conf file. Now, in my case I use DHCP and the DNS Suffixes. So, when Gnome-Network reconnects, it updates /etc/resolv.conf automatically, making my DNS Suffixes disappear. The problem lies in the fact, that Gnome-Network works together with dhcp3, where the configuration is stored in /etc/dhcp3/dhclient.conf.
So the main problem is, that if I want to make the Gnome-Network remember my DNS Suffix settings, I have to manually update /etc/dhcp3/dhclient.conf, and add the following : "prepend domain-name "something.com hu.something.com blog.something.com "; (the space is at the end neccessary, otherwise the DHCP client will give the current DNS Suffix extracted from the DHCP server wrong)
The solution would be, that gnome-network would update /etc/dhcp3/dhclient.conf in case of DHCP, and not resolv.conf. This way changes can be stored for a longer period, and would not go lost after each reconnection.