On Tue, 17 May 2005, Jean Magnan de Bornier wrote:

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

# esearch quickswitch
[ Results for search key : quickswitch ]
[ Applications found : 1 ]

*  app-admin/quickswitch
      Latest version available: 1.05
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 19 kB
      Homepage:    http://quickswitch.sf.net
      Description: Utility to switch network profiles on the fly
      License:     GPL-2


-- 
Aj.
-- 
gentoo-user@gentoo.org mailing list

Reply via email to