View Full Version : change dns address in gutsy permanently
abhinandh
10-01-2008, 03:24 PM
dataone dns is having lot of problems and to shift to open dns when i type the dnsaddresses in system->administration->network , the settings are changed when connection is redialled.
mehulved
10-01-2008, 03:48 PM
See /etc/dhcp/dhclient.conf
prepend <opendns>
praka123
10-01-2008, 04:20 PM
if ur having a single computer and uses bridge mode(dials from linux to connect) it is easy;u need to "#" out the line "usepeerdns" in /etc/ppp/peers/dsl-provider and then add the opendns servers at /etc/resolv.conf as:
nameserver 208.67.222.222
nameserver 208.67.220.220
and go to http://welcome.opendns.com for verification dataone dns server is down here most of the time :( .
if ur on pppoe dialer mode(router configured) then u have to add the opendns servers in the dns option in ur router webconfiguration page(192.168.1.1 ? )
abhinandh
10-01-2008, 06:54 PM
See /etc/dhcp/dhclient.conf
prepend <opendns>
already tried that.no success
if ur having a single computer and uses bridge mode(dials from linux to connect) it is easy;u need to "#" out the line "usepeerdns" in /etc/ppp/peers/dsl-provider and then add the opendns servers at /etc/resolv.conf as:
nameserver 208.67.222.222
nameserver 208.67.220.220
and go to http://welcome.opendns.com for verification dataone dns server is down here most of the time :( .
thank you very much.works like a charm.
abhinandh
11-01-2008, 07:06 AM
@praka , got another prob.when restarted dns fields are empty and websites donot open unless i change the dns in system->administration->network
NucleusKore
11-01-2008, 07:21 AM
Assign a static IP and disable DHCP, and assign the Open DNS numbers, and gateway (usually 192.168.1.1) by using the network configuration tool in the taskbar on your desktop.
abhinandh
11-01-2008, 08:09 AM
http://www.imgx.org/pthumbs/small/4340/Screenshot-eth0%20Properties.png (http://www.imgx.org/public/view/4340)
my conf is already static ip
praka123
11-01-2008, 10:18 AM
@praka , got another prob.when restarted dns fields are empty and websites donot open unless i change the dns in system->administration->network
look at my /etc/ppp/peers/dsl-provider:
# Minimalistic default options file for DSL/PPPoE connections
noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
#mtu 1492
#usepeerdns
plugin rp-pppoe.so eth0
user "userid"
I think there is prolly no chance of getting /etc/resolv.conf blank :-| :
else u have to set attr option using
chattr +i /etc/resolv.conf
^to prevent overwriting and make sure u have opendns entries in /etc/resolv.conf as per post number #3
mehulved
11-01-2008, 01:59 PM
How exactly do you connect to the internet?
Praka that's a bad way, though it works.
gary4gar
11-01-2008, 02:22 PM
chattr does not work on all FS like ext4, so better find what causing the problem then remove.
Locking the file is not the correct way as mehul said
mehulved
11-01-2008, 02:23 PM
it doesn't work on ext4? I thought ext4 was backwards compatible with ext3.
It's just a extfs feature. Won't work in any other fs AFAIK.
praka123
11-01-2008, 03:47 PM
^ext4 may not be backward compatible ext3<=>ext2 .ext4 bundles many new features afaik.btw, commenting out (#) usepeerdns does the trick in bridge mode.
abhinandh
11-01-2008, 08:23 PM
How exactly do you connect to the internet?
pon and poff commands to dial pppoe.
@praka reslov.conf is not empty but in the dns tab of system->administration->network it is empty and webpages donot open till i manually give it an address.
praka123
11-01-2008, 08:29 PM
^that may be a gnome-system-tools failure(HAL).if ur having a single computer with dataone connection only for internet,i suggest you remove below packages for the ease;
sudo apt-get remove --purge network-manager network-manager-gnome restart ur system or services to try again!
abhinandh
11-01-2008, 08:54 PM
^that may be a gnome-system-tools failure(HAL).if ur having a single computer with dataone connection only for internet,i suggest you remove below packages for the ease;
sudo apt-get remove --purge network-manager network-manager-gnome restart ur system or services to try again!
alright!! workin good.thanks.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.