View previous topic :: View next topic |
Author |
Message |
Kenji Miyamoto Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/108568614c11b737d3e30.jpg)
Joined: 28 May 2005 Posts: 1452 Location: Looking over your shoulder.
|
Posted: Wed May 23, 2007 8:36 pm Post subject: resolvconf Reverts to 192.168.1.1 for DNS |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
RayDude Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/132281152442769cccbb403.jpg)
Joined: 29 May 2004 Posts: 2094 Location: San Jose, CA
|
Posted: Wed May 23, 2007 10:24 pm Post subject: Re: resolvconf Reverts to 192.168.1.1 for DNS |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
madisonicus Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_r2-d2.gif)
Joined: 20 Sep 2006 Posts: 1130
|
Posted: Thu May 24, 2007 12:43 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tarpman Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/194464846347fed31505afc.jpg)
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Thu May 24, 2007 2:43 am Post subject: |
|
|
/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 |
|
![](templates/gentoo/images/spacer.gif) |
|