Gentoo Archives: gentoo-user

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