DNS issues
python
ulist at gs1.ubuntuforums.org
Mon Jan 17 23:16:53 UTC 2005
Anonymous Wrote:
> On Tue, Oct 19, 2004 at 12:43:25PM +0200, Bastian Doetsch wrote:
> > Am Dienstag, den 19.10.2004, 12:35 +0200 schrieb Erik B?gfors:
> > > Are you running dhcp?
> > >
> >
> > yes, but it happens also with static ip assignments.
> >
>
> Now, that's strange. I've never seen such a thing unless the system
> is
> running the DHCP client. I'd make sure the DHCP client is definitely
> not running on the system, and perhaps even use the 'chattr' command
> to
> make it impossible to overwrite the file. At least that should throw
> some sort of error to the logs that might clarify which process is
> doing
> that. Just an idea.
>
> ----------------
> Nitebirdz
> http://www.sacredchaos.com/
>
> --
> 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