Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 11-30-2007, 03:38 PM   #1
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Rep: Reputation: 15
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.


Old 11-30-2007, 04:16 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
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.
Old 12-02-2007, 01:41 AM   #3
Senior Member
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 51
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 03:39 PM
settings won't save miner49er Debian 1 04-01-2006 12:27 PM
Can I Save LiveCD settings? figseedduh Linux - Newbie 4 01-01-2005 09:36 PM
kwifimanager doesn't save settings fizgig10 Linux - Wireless Networking 1 11-29-2004 10:58 PM
How do I save my settings? laverscheval DamnSmallLinux 2 10-08-2004 08:44 PM

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration