dns not working in 9.10

Asked by Peter

Today I upgraded from 9.04 to 9.10 and am back with my old DNS problems.
In 8.04 I had to edit /etc/resolv.conf and make it read only to preserve DNS vales as shown

nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 210.55.12.1
nameserver 210.55.12.2

In 9.04 that did not work but I discovered /etc/ppp/resolv.conf
and put
nameserver 208.67.222.222
 nameserver 208.67.220.220

in it, made it read only and open DNS is worked.

None of those work in 9.10 Anything put in system-->Network does not work and the DNS addresses I put there vanish.
I read another person's answer to do :-

sudo gedit /etc/dhcp3/dhclient.conf

Change the prepend line to read:

prepend domain-name-servers 208.67.222.222, 208.67.220.220;

save and exit and restart your network:

sudo /etc/init.d/networking restart

and that works but every time I start the computer I have to restart the network after logging on.

There must be a way of avoiding this and my wife cant do it without superuser privileges.

Any ideas

Note I have tried editing /etc/resolvconf/run/resolv.conf as at the start of this question but that did not work.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Peter
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Don't use sudo with gedit, use gksudo

You need to add the DNS servers to you network managing app, the gui apps replace the contents with whatever is in the settings and destroys whatever is in there (annoying)

Once you set the DNS servers properly in your gui app (wicd, network-manager, wifi-radar, whatever) it will be added as you expect.

I don't know why it does this personally. Very annoying (I use a local DNS on my systems to speed up resolutions and had to add this to wicd to stop it overwriting my settings)

Revision history for this message
Peter (nitep) said :
#2

I edited /etc/resolvconf/run/resolv.conf again using gksudo gedit and it is working fine.
Thanks