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 :)

~ by azimyasin on October 2, 2007.

3 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.

Leave a Reply