From 27ac9680474e4eb0edb9d6c022f7a1b4f94393b9 Mon Sep 17 00:00:00 2001 From: "Sean E. Millichamp" Date: Tue, 4 Aug 2015 13:50:50 -0400 Subject: [PATCH 2/2] Handle comma-separated DNS domain lists Juniper VPNs can send comma separated DNS domain lists. This converts the commas into a resolv-compatible space separated list. Signed-off-by: Sean E. Millichamp --- vpnc-script | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vpnc-script b/vpnc-script index b70011f..2f91cb7 100755 --- a/vpnc-script +++ b/vpnc-script @@ -389,7 +389,9 @@ EOF ;; search*) if [ -n "$CISCO_DEF_DOMAIN" ]; then - LINE="$LINE $CISCO_DEF_DOMAIN" + # Juniper VPNs can send comma separated domain + # search orders: + LINE="$LINE ${CISCO_DEF_DOMAIN//,/ }" CISCO_DEF_DOMAIN="" fi ;; -- 2.4.3