-   Ubuntu (
-   -   Cannot save my DNS Settings (

jpostma 11-30-2007 04:38 PM

Cannot save my DNS Settings
When I change the DNS settings in the network-manager every time I reboot the settings will be overwritten by How can I change this? I have tried to change my /etc/resolv.conf manually but unfortunately it didn't help.



theNbomr 11-30-2007 05:16 PM

Are your network configurations coming form a DHCP server? If so, perhaps it is issuing DNS configuration as well. Correct the DHCP server, use static IP boot parameters, or override the DNS settings in rc.local.
--- rod.

Cogar 12-02-2007 02:41 AM

A common reason for this is if the DNS information is incorrectly over written by DHCP from the DSL modem/router. (For example, the Actiontec GT701-WG is notorious for doing this.) This can be solved with a simple configuration change.

1. Navigate to the /etc/dhcp3/dhclient.conf file.

2. I recommend making a backup of the file by issuing the following command:
sudo cp dhclient.conf dhclient.conf-bak

3. Edit the file using sudo vi dhclient.conf. Find the line that looks like this:
#prepend domain-name-servers;

You need to uncomment the line (remove the hash mark) and replace the with your DNS addresses. It will end up having a format like this with a primary and secondary DNS addresses added:
prepend domain-name-servers

4. Save the file and restart the computer. (I know you can issue a command to restart the network, but restarting the computer is the real test.) It should behave itself this time, and it works fine for me with Kubuntu 7.10. Note: these changes may not show up if you check the Network Configuration tool, but let your ability to move about on the Internet be your guide regarding whether it can now properly find your DNS addresses or not.

All times are GMT -5. The time now is 01:35 AM.