On Wed, Oct 03, 2007 at 02:21:33PM -0500, Aaron W. Hsu wrote: > I've been working with the vpnc port, and I noticed something strange. I have > to run a dhcp client first to connect to my network, and then I start vpnc. > This all works fine until dhcp repools for a new IP. Somehow, it overwrites > the resolv.conf file so that my routes do not work. Tunnels already > established continue to work for some time, but eventually they go out too. > > Does anyone know what is wrong here? It does not appear that my vpnc client > is > disconnecting me, or that the server is disconnecting me, so I can't see any > other reason than dhclient for the whole thing to mess up. > > Has anyone experienced a similar problem? Is there a way to make sure that > dhclient does not overwrite my vpnc defined resolv.conf file? :-/
Wouldn't playing tricks [1] with /etc/resolv.conf.tail work? Joachim [1] Copying the 'nameserver' lines from /etc/resolv.conf to /etc/resolv.conf.tail after vpnc has started, or somesuch. -- PotD: multimedia/gstreamer-0.10/plugins-base,-vorbis - multimedia framework - vorbis plugin