LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-30-2007, 04:38 PM   #1
jpostma
Member
 
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 192.168.1.1. How can I change this? I have tried to change my /etc/resolv.conf manually but unfortunately it didn't help.

Regards,

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

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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, 02:41 AM   #3
Cogar
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: 52
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 127.0.0.1;

You need to uncomment the line (remove the hash mark) and replace the 127.0.0.1 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 111.111.1.11 222.222.2.22

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.
 
  


Reply


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 04:39 PM
settings won't save miner49er Debian 1 04-01-2006 01:27 PM
Can I Save LiveCD settings? figseedduh Linux - Newbie 4 01-01-2005 10:36 PM
kwifimanager doesn't save settings fizgig10 Linux - Wireless Networking 1 11-29-2004 11:58 PM
How do I save my settings? laverscheval DamnSmallLinux 2 10-08-2004 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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