View previous topic :: View next topic |
Author |
Message |
Kenji Miyamoto Veteran


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


Joined: 29 May 2004 Posts: 2096 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 |
|
 |
madisonicus Veteran


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


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