Disappearing DNS servers

python ulist at gs1.ubuntuforums.org
Mon Jan 17 23:19:21 UTC 2005


Anonymous Wrote: 
> I have added some additional DNS servers to augment the default "DNS
> service"
> provided via DHCP by my router at 192.168.0.1.  I put these in place
> using
> Computer->System Adminitration->Networking dialog, on the DNS
> tab.
> 
> However, these keep disappearing.  What I mean is that they disappear
> from
> /etc/resolv.conf.  If I go back to the Computer->System
> Adminitration->Networking dialog, they are still there.  But they
> are gone from
> /etc/resolv.conf, and therefore are not used.
> 
> I guess the fundamental problem is that my router's "DNS Service" is
> flakey and
> ends up not working half the time (I have a Netgear mr314 wireless
> base
> station/switch -- can anyone comment on this behavior?).  The "easy"
> way around
> that problem was just to add some other DNS servers.  However, these
> keep on
> vanishing, too!
> 
> Who can help me find my way out of this dilema?
> 
> Chris
> 
> 
> 
> 
> 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Go to COMPUTER--->SYSTEM CONFIGURATION--->NETWORKING (you will need to
be superuser (root))

Then go to the DNS tab (probably 192.168.blah.blah as entry)

Find out your ISPs DNS nameservers, for example, Tiscali is
212.74.112.66 and 212.74.112.67.

Enter those bad boys in. Take 192.168.blah.blah OUT!



Then go to /etc/resolv.conf
Make sure that these two entries are there:

nameserver 212.74.112.66
nameserver 212.74.112.67

Your ISPs nameservers replacing mine ;-P
Nameserver 192.168.blah.blah should either be commented out (preceded
with a #) or not be there at all.



Finally, go to /etc/dhcp3/dhclient-script and comment out this:

# Modified for Debian. Matt Zimmerman and Eloy Paris, December 2003

# The alias handling in here probably still sucks. -mdz

#make_resolv_conf() {
# if [ -n "$new_domain_name" -o -n "$new_domain_name_servers" ]; then
# local new_resolv_conf=/etc/resolv.conf.dhclient-new
# rm -f $new_resolv_conf
#
# if [ -n "$new_domain_name" ]; then
# echo search $new_domain_name >> $new_resolv_conf
# else # keep 'old' search/domain scope
# egrep -i '^ *[:space:]*(search|domain)' /etc/resolv.conf >> \
# $new_resolv_conf
# fi
#
# if [ -n "$new_domain_name_servers" ]; then
# for nameserver in $new_domain_name_servers; do
# echo nameserver $nameserver >>$new_resolv_conf
# done
# else # keep 'old' nameservers
# egrep -i '^ *[:space:]*nameserver' /etc/resolv.conf >> \
# $new_resolv_conf
# fi
#
# chown --reference=/etc/resolv.conf $new_resolv_conf
# chmod --reference=/etc/resolv.conf $new_resolv_conf
# mv $new_resolv_conf /etc/resolv.conf
# fi
#}


That should have you sorted sunshine!


-- 
python




More information about the ubuntu-users mailing list