Hello all,
I am setting up a way to have my laptop automatically get a correct ip
address. 

When I am at my office, I have a fixed ip; at home (on a
private network) I use dhcp.
I know I can use quickswitch for that but I want something really
automatic, so after some search I ended up with this in my
/etc/conf.d/net:

iface_eth0="dhcp"
ifconfig_eth0=( "dhcp" "194.199.136.151" )      
dhcpcd_eth0="-t 30"
ifconfig_fallback_eth0=( "194.199.136.151 netmask 255.255.255.0 " )
ipaddr_fallback_eth0=( "194.199.136.151  gw 194.199.136.250" )

This works great, but as dhcp overwrites /etc/resolv.conf, when I go back
to my fixed ip my dns servers are not the ones I need (still the ones I
use at home). My dns names for office are set in /etc/resolv.conf.fac. Is
there a way to have the machine know which dns servers to use?
Thanks for any hint,
-- 
Jean Magnan de Bornier          |       email: jean-at-bornier.net
 
-- 
gentoo-user@gentoo.org mailing list

Reply via email to