Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-30-2007, 04:38 PM
|
#1
|
Member
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119
Rep:
|
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
|
|
|
11-30-2007, 05:16 PM
|
#2
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
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.
|
|
|
12-02-2007, 02: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:
|
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.
|
|
|
All times are GMT -5. The time now is 10:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|