Gentoo Archives: gentoo-user

From: Michael Hampicke <gentoo-user@××××.biz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] why is it using OpenDNS?
Date: Thu, 10 May 2012 08:38:55
Message-Id: 4FAB7E39.8030202@hadt.biz
In Reply to: Re: [gentoo-user] why is it using OpenDNS? by Grant
1 Am 10.05.2012 10:20, schrieb Grant:
2 >> Try appending this into your /etc/conf.d/net
3 >> >
4 >> > dns_servers_wlan0=208.67.222.222 208.67.220.220
5 >> >
6 >> > with or without quotes and brackets I am not really sure.
7 >> >
8 >> > dns_servers_wlan0=( "208.67.222.222 208.67.220.220" )
9 >> >
10 >> > Hope this helps!
11 > Thanks, but I'm actually trying to figure out why the system is using
12 > OpenDNS. I don't see any OpenDNS settings anywhere and yet
13 > resolv.conf has OpenDNS IPs even after a reboot. Shouldn't the
14 > 192.168.0.2 system have 192.168.0.1 in resolv.conf after DHCP?
15
16 If there is no setting in /etc/conf.d/net that sets the nameservers
17 (like dns_servers_wlan0=...) or if you don't use dhcp, the file
18 /etc/resolv.conf won't be touched.
19
20 You can try it, edit /etc/resolv.conf by hand, reboot. Then you will see
21 that your changes are still there.
22
23 If you set an nameserver in /etc/conf.d/net - then resolv.conf will be
24 overwritten when /etc/init.d/net.* gets started.

Replies

Subject Author
Re: [gentoo-user] why is it using OpenDNS? Grant <emailgrant@×××××.com>