epcim
10/21/2015 - 2:08 PM

resolvconf.howto.md

Ubuntu mix OpenVPN + VPNC etc..

/etc/default/resolvconf:

TRUNCATE_NAMESERVER_LIST_AFTER_LOOPBACK_ADDRESS=no

Two scenarios:

  • while using NetworkManager use nm-connection-editor to import both connections, configure openvpn to pass DNS names and all !! search domains required (alternatively update DNS and search-domains in "nm" dialog)
  • while using scripts or directly updating /etc/resolv.conf (over /sbin/resolvconf) then call /etc/openvpn/update-resolv-conf script as a part of up/down .ovpn conf)