Oren Held 25.Feb.11 06:17 PM a Web browser Mobility client 6.1.2 Linux
As far as I know LCM has two modes: overwrite resolv.conf enabled/disabled (GatewaySuppliesDNS parameter).
Each of the modes has disadvantages:
resolv.conf overwriting enabled: after disconnecting, I have to manually remove the now-unreachable VPN nameservers it added
resolv.conf overwriting disabled: After connecting, I have to manually add the VPN nameservers.
Ubuntu and other Debian based Linuxes have a facility made right for this purpose - resolvconf (man resolvconf). Using resolvconf -a <interface> it can add new nameservers, and resolvconf -d <interface> removces them and brings things back.
That's what I call - gracefully updating resolv.conf.
As I bet LCM doesn't support resolvconf internally, I'd like to run these commands as post-[dis]connect scripts. But I couldn't found a way to do it either! Any idea? I'll take even not-so-neat ideas :)