![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Networking & Wireless Having problems getting connected to the internet or getting your wireless card to work? Ask here. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2004
Beans: 1
|
Network settings keep resetting
In the Network Settings menu, I made some changes to the DNS servers and search domains. After I restarted my computer, the changes were gone. I then created a profile and saved it with the same information. Upon rebooting again, the current network profile had gone back to "Unknown".
How can I make my changes stick around permanently? |
|
|
|
|
|
#2 |
|
Quad Shot of Ubuntu
![]() Join Date: Oct 2004
Location: Phoenix
Beans: 437
|
Re: [resolved] Network settings keep resetting
Isn't that part of /etc/resolv.conf ?
|
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Dec 2004
Beans: 69
Ubuntu 6.06
|
Re: [resolved] Network settings keep resetting
I'm having the same problem. I tried editing resolv.conf but as the file says...
DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN Any other ideas? |
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2004
Beans: 5
|
Re: [resolved] Network settings keep resetting
I got my settings to persist by commenting out the function make_resolv_conf() in /etc/dhcp3/dhclient-script.
patrick |
|
|
|
|
|
#5 | |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2004
Location: UK
Beans: 22
|
Re: [resolved] Network settings keep resetting
Quote:
|
|
|
|
|
|
|
#6 |
|
5 Cups of Ubuntu
![]() |
Re: [resolved] Network settings keep resetting
I was having the same problem, but editing out make_resolv_conf() fixed it. Good luck.
|
|
|
|
|
|
#7 |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2004
Location: UK
Beans: 22
|
Re: [resolved] Network settings keep resetting
I have a nice bodgy solution which seems to stick
The file /etc/resolvconf/resolv.conf.d/base contains entries which will always be added, regardless of what resolv.conf also adds. It's empty by default. If you edit it: sudo gedit /etc/resolvconf/resolv.conf.d/base And add lines for your nameserver(s): nameserver xxx.xxx.xxx.xxx nameserver xxx.xxx.xxx.xxx Then when resolvconf runs on startup, it will produce a resolv.conf file something like this: # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf( # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver xxx.xxx.xxx.xxx nameserver xxx.xxx.xxx.xxx nameserver 127.0.0.1 nameserver yyy.yyy.yyy.yyy ...and that works. |
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: Dec 2004
Beans: 69
Ubuntu 6.06
|
Re: [resolved] Network settings keep resetting
When resolv.conf was rewritten each time on startup I think it kept grabbing my Actiontec DSL modem's IP as a DNS entry. So I had a DNS entry along the lines of:
Code:
17.xxx.xxx.xx At first when I read mpjbrennan's suggestion to comment the make_resolv_conf function out of /etc/dhcp3/dhclient-script I only commented out the first line of it. After properly commenting out the make_resolv_conf function and then writing my ISP's DNS entries into the network settings panel, I don't have any worries. Resolv.conf is no longer rewritten with my modem's IP at startup and I have instant internet access after I boot. Dig it. Last edited by dkitty; April 16th, 2005 at 01:23 PM.. |
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2005
Beans: 4
|
Re: [resolved] Network settings keep resetting
Just came across this post and wanted to give advice on what I've done to fix this actiontec dsl modem dns issue.
The dhclient3 client runs /etc/dhcp3/dhclient-script can be extended by simply creating your own scripts under /etc/dhcp3/dhclient-*-hooks.d/. Check out the man pages for dhclient-script ($ man 8 dhclient-script) and read the HOOKS section. What I did was just dropped the following script in as an exit hook, so it is executed after the /etc/resolv.conf is updated. All this hack does is strip out the 192.168.1.1 crap that really doesn't work anyways. Code:
$ cat /etc/dhcp3/dhclient-exit-hooks.d/check_actiontec_dns
BAD_IP=192.168.1.1
echo `date`: checking dns ordering for actiontec woes
grep ${BAD_IP} /etc/resolv.conf > /dev/null
if [ $? == 0 ]; then
echo removing actiontec dns entry
grep -v ${BAD_IP} /etc/resolv.conf > /tmp/resolv.conf
mv /tmp/resolv.conf /etc/resolv.conf
fi
Hope this helps, Dustin |
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() Join Date: May 2006
Beans: 6
|
Re: [resolved] Network settings keep resetting
I realised that my router was resetting the DNS to the wrong 192.168.1.1 every 10 seconds and even if I wrote via Network Settings (KDE) or directly into resolv.conf to use an alternative good one (194.72.6.51) after 10 seconds it got overwritten again to the 192.168.1.1 I was getting desperate and furious. Windows machines kept the alternate DNS in IP configuration without problems.
Then I found out (through a OpenSuse Live CD and YAST configuration) that to turn off the setting DNS via DHCP I had to change the resolv.conf instead of search -name- nameserver 192.168.1.1 to domain site nameserver 192.168.1.1 nameserver 194.72.6.51 That helped, since then the DNS stays as it should and my internet is working 100% |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|