public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] why is it using OpenDNS?
@ 2012-05-09 10:36 Grant
  2012-05-09 10:53 ` Willie Matthews
  0 siblings, 1 reply; 6+ messages in thread
From: Grant @ 2012-05-09 10:36 UTC (permalink / raw
  To: Gentoo mailing list

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] why is it using OpenDNS?
  2012-05-09 10:36 [gentoo-user] why is it using OpenDNS? Grant
@ 2012-05-09 10:53 ` Willie Matthews
  2012-05-10  8:20   ` Grant
  0 siblings, 1 reply; 6+ messages in thread
From: Willie Matthews @ 2012-05-09 10:53 UTC (permalink / raw
  To: gentoo-user

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@gmail.com




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] why is it using OpenDNS?
  2012-05-09 10:53 ` Willie Matthews
@ 2012-05-10  8:20   ` Grant
  2012-05-10  8:37     ` Michael Hampicke
  2012-05-10 12:49     ` Joshua Murphy
  0 siblings, 2 replies; 6+ messages in thread
From: Grant @ 2012-05-10  8:20 UTC (permalink / raw
  To: gentoo-user

> 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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] why is it using OpenDNS?
  2012-05-10  8:20   ` Grant
@ 2012-05-10  8:37     ` Michael Hampicke
  2012-05-11  7:31       ` Grant
  2012-05-10 12:49     ` Joshua Murphy
  1 sibling, 1 reply; 6+ messages in thread
From: Michael Hampicke @ 2012-05-10  8:37 UTC (permalink / raw
  To: gentoo-user



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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] why is it using OpenDNS?
  2012-05-10  8:20   ` Grant
  2012-05-10  8:37     ` Michael Hampicke
@ 2012-05-10 12:49     ` Joshua Murphy
  1 sibling, 0 replies; 6+ messages in thread
From: Joshua Murphy @ 2012-05-10 12:49 UTC (permalink / raw
  To: gentoo-user

On Thu, May 10, 2012 at 4:20 AM, Grant <emailgrant@gmail.com> 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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] why is it using OpenDNS?
  2012-05-10  8:37     ` Michael Hampicke
@ 2012-05-11  7:31       ` Grant
  0 siblings, 0 replies; 6+ messages in thread
From: Grant @ 2012-05-11  7:31 UTC (permalink / raw
  To: gentoo-user

>>> 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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-11  7:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 10:36 [gentoo-user] why is it using OpenDNS? Grant
2012-05-09 10:53 ` Willie Matthews
2012-05-10  8:20   ` Grant
2012-05-10  8:37     ` Michael Hampicke
2012-05-11  7:31       ` Grant
2012-05-10 12:49     ` Joshua Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox