FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 05-09-2012, 10:36 AM
Grant
 
Default 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
 
Old 05-09-2012, 10:53 AM
Willie Matthews
 
Default why is it using OpenDNS?

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
 
Old 05-10-2012, 08:20 AM
Grant
 
Default why is it using OpenDNS?

> 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
 
Old 05-10-2012, 08:37 AM
Michael Hampicke
 
Default why is it using OpenDNS?

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.
 
Old 05-10-2012, 12:49 PM
Joshua Murphy
 
Default why is it using OpenDNS?

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
 
Old 05-11-2012, 07:31 AM
Grant
 
Default why is it using OpenDNS?

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

Thread Tools




All times are GMT. The time now is 11:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org