Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resolvconf Reverts to 192.168.1.1 for DNS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Wed May 23, 2007 8:36 pm    Post subject: resolvconf Reverts to 192.168.1.1 for DNS Reply with quote

For some reason, resolvconf periodically reverts back to the DHCP-provided 192.168.1.1 for DNS. How do I have resolvconf override DHCP when this happens?
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Wed May 23, 2007 10:24 pm    Post subject: Re: resolvconf Reverts to 192.168.1.1 for DNS Reply with quote

Kenji Miyamoto wrote:
For some reason, resolvconf periodically reverts back to the DHCP-provided 192.168.1.1 for DNS. How do I have resolvconf override DHCP when this happens?


Change your network configuration. Use fixed IP and specify the routes:

/etc/conf.d/net
Code:
config_eth0=( "192.168.0.1/24" )
routes_eth0=("default via 192.168.0.254")


You may be able to override dhcp with the routes line, but I've never done that. Check out /etc/conf.d/net.example.

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Thu May 24, 2007 12:43 am    Post subject: Reply with quote

You can also do a
/etc/conf.d/net:
dns_servers=( "aaa.bbb.ccc.ddd" "www.xxx.yyy.zzz" )


HTH,
m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Thu May 24, 2007 2:43 am    Post subject: Reply with quote

/etc/conf.d/net:
config_eth0=( "dhcp" )
dhcp_eth0="nodns"
dns_servers_eth0="111.222.333.444"

_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum