In the ebuilds you are downloading the vpnc-script from: ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-20140806.tar.gz [parameter: VPNC_VER=20140806] Looks like this is an old version This version change the /etc/resolv.conf with incorrect values in domain parameter (the search values) Downloading the new version: ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-20160811.tar.gz [paramter: VPNC_VER=20160811] this problem is solved I'm using it to connect to juniper vpn (with --juniper variable) maybe in other vpn it works correct.
commit 967c1fb9a56d4cd216f4516d7acf8a136a827565 Author: Mike Gilbert <floppym@gentoo.org> Date: Sun Sep 11 20:50:29 2016 -0400 net-misc/openconnect: use vpnc-scripts-20160829 Bug: https://bugs.gentoo.org/591774 Package-Manager: portage-2.3.0_p24 net-misc/openconnect/Manifest | 1 + .../openconnect/{openconnect-7.07.ebuild => openconnect-7.07-r1.ebuild} | 2 +- net-misc/openconnect/openconnect-9999.ebuild | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-)