Network Manager over rides DNS in Ubuntu *FIX*

Since i installed ubuntu on my laptop i been facing this problem.. after some inactivity my dns get changed and i have to manually change it to make it work.

it changes the dns to

nameserver 10.0.0.138

so i would have to change it again and again to make it work this really pisses me of..

how ever after googling around for a while i found a fix.

Maxcom dns servers are

“202.70.150.10”

“202.70.150.11”

sudo cp /etc/resolv.conf /etc/resolv.conf.auto
sudo gedit /etc/dhcp3/dhclient.conf
# append the following line to the document
prepend domain-name-servers 202.70.150.10,202.70.150.11;
# save and exit
$ sudo ifdown eth0 && sudo ifup eth0

Your network card will restart and the problem is gone 🙂

Advertisements

~ by Azeem on October 2, 2007.

4 Responses to “Network Manager over rides DNS in Ubuntu *FIX*”

  1. $ echo ‘nameserver 10.0.0.138’ | sudo tee /etc/resolv.conf
    $ sudo chattr +i /etc/resolv.conf

    Kristian Erik Hermansen

  2. i tried to chmod it but it still gets overriden by network manager do you yourself tried it ? and does it works?

  3. congrats on the jump to ubuntu. let me know if you have any other issues. i’m pretty excited about gutsy gibbon.

  4. Thank you! These instructions just brought one webserver back online again. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: