Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User

why is it using OpenDNS?

 

 

Gentoo user RSS feed   Index | Next | Previous | View Threaded


emailgrant at gmail

May 9, 2012, 3:36 AM

Post #1 of 6 (374 views)
Permalink
why is it using OpenDNS?

One of my systems is using OpenDNS:

# cat /etc/resolv.conf
nameserver 208.67.222.222 208.67.220.220

# cat /etc/conf.d/net
config_wlan0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
routes_wlan0="default via 192.168.0.1"

and I can't figure out why. Does anyone know why this is happening?

192.168.0.1 has the ISP in resolv.conf.

- Grant


matthews.willie at gmail

May 9, 2012, 3:53 AM

Post #2 of 6 (373 views)
Permalink
Re: why is it using OpenDNS? [In reply to]

Try appending this into your /etc/conf.d/net

dns_servers_wlan0=208.67.222.222 208.67.220.220

with or without quotes and brackets I am not really sure.

dns_servers_wlan0=( "208.67.222.222 208.67.220.220" )

Hope this helps!

On 05/09/12 03:36, Grant wrote:
> One of my systems is using OpenDNS:
>
> # cat /etc/resolv.conf
> nameserver 208.67.222.222 208.67.220.220
>
> # cat /etc/conf.d/net
> config_wlan0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
> routes_wlan0="default via 192.168.0.1"
>
> and I can't figure out why. Does anyone know why this is happening?
>
> 192.168.0.1 has the ISP in resolv.conf.
>
> - Grant
>

--

Willie Matthews
matthews.willie [at] gmail


emailgrant at gmail

May 10, 2012, 1:20 AM

Post #3 of 6 (378 views)
Permalink
Re: why is it using OpenDNS? [In reply to]

> Try appending this into your /etc/conf.d/net
>
> dns_servers_wlan0=208.67.222.222 208.67.220.220
>
> with or without quotes and brackets I am not really sure.
>
> dns_servers_wlan0=( "208.67.222.222 208.67.220.220" )
>
> Hope this helps!

Thanks, but I'm actually trying to figure out why the system is using
OpenDNS. I don't see any OpenDNS settings anywhere and yet
resolv.conf has OpenDNS IPs even after a reboot. Shouldn't the
192.168.0.2 system have 192.168.0.1 in resolv.conf after DHCP?

- Grant


>> One of my systems is using OpenDNS:
>>
>> # cat /etc/resolv.conf
>> nameserver 208.67.222.222 208.67.220.220
>>
>> # cat /etc/conf.d/net
>> config_wlan0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
>> routes_wlan0="default via 192.168.0.1"
>>
>> and I can't figure out why. Does anyone know why this is happening?
>>
>> 192.168.0.1 has the ISP in resolv.conf.
>>
>> - Grant


gentoo-user at hadt

May 10, 2012, 1:37 AM

Post #4 of 6 (379 views)
Permalink
Re: why is it using OpenDNS? [In reply to]

Am 10.05.2012 10:20, schrieb Grant:
>> Try appending this into your /etc/conf.d/net
>> >
>> > dns_servers_wlan0=208.67.222.222 208.67.220.220
>> >
>> > with or without quotes and brackets I am not really sure.
>> >
>> > dns_servers_wlan0=( "208.67.222.222 208.67.220.220" )
>> >
>> > Hope this helps!
> Thanks, but I'm actually trying to figure out why the system is using
> OpenDNS. I don't see any OpenDNS settings anywhere and yet
> resolv.conf has OpenDNS IPs even after a reboot. Shouldn't the
> 192.168.0.2 system have 192.168.0.1 in resolv.conf after DHCP?

If there is no setting in /etc/conf.d/net that sets the nameservers
(like dns_servers_wlan0=...) or if you don't use dhcp, the file
/etc/resolv.conf won't be touched.

You can try it, edit /etc/resolv.conf by hand, reboot. Then you will see
that your changes are still there.

If you set an nameserver in /etc/conf.d/net - then resolv.conf will be
overwritten when /etc/init.d/net.* gets started.


poisonbl at gmail

May 10, 2012, 5:49 AM

Post #5 of 6 (385 views)
Permalink
Re: why is it using OpenDNS? [In reply to]

On Thu, May 10, 2012 at 4:20 AM, Grant <emailgrant [at] gmail> wrote:
>> Try appending this into your /etc/conf.d/net
>>
>>    dns_servers_wlan0=208.67.222.222 208.67.220.220
>>
>> with or without quotes and brackets I am not really sure.
>>
>>    dns_servers_wlan0=( "208.67.222.222 208.67.220.220" )
>>
>> Hope this helps!
>
> Thanks, but I'm actually trying to figure out why the system is using
> OpenDNS.  I don't see any OpenDNS settings anywhere and yet
> resolv.conf has OpenDNS IPs even after a reboot.  Shouldn't the
> 192.168.0.2 system have 192.168.0.1 in resolv.conf after DHCP?
>
> - Grant
>

Well, given that question, I would jump to the guess that your
router's DHCP (assuming a home setup) is giving you those rather than
itself when it gives DNS addresses.

--
Poison [BLX]
Joshua M. Murphy


emailgrant at gmail

May 11, 2012, 12:31 AM

Post #6 of 6 (372 views)
Permalink
Re: why is it using OpenDNS? [In reply to]

>>> Try appending this into your /etc/conf.d/net
>>> >
>>> > dns_servers_wlan0=208.67.222.222 208.67.220.220
>>> >
>>> > with or without quotes and brackets I am not really sure.
>>> >
>>> > dns_servers_wlan0=( "208.67.222.222 208.67.220.220" )
>>> >
>>> > Hope this helps!
>> Thanks, but I'm actually trying to figure out why the system is using
>> OpenDNS. I don't see any OpenDNS settings anywhere and yet
>> resolv.conf has OpenDNS IPs even after a reboot. Shouldn't the
>> 192.168.0.2 system have 192.168.0.1 in resolv.conf after DHCP?
>
> If there is no setting in /etc/conf.d/net that sets the nameservers
> (like dns_servers_wlan0=...) or if you don't use dhcp, the file
> /etc/resolv.conf won't be touched.
>
> You can try it, edit /etc/resolv.conf by hand, reboot. Then you will see
> that your changes are still there.
>
> If you set an nameserver in /etc/conf.d/net - then resolv.conf will be
> overwritten when /etc/init.d/net.* gets started.

Perfect, thank you. I didn't realize /etc/resolv.conf isn't
overwritten if DHCP isn't used.

- Grant

Gentoo user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.