]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
resolvconf: set search instead of domain
authorRobin H. Johnson <robbat2@gentoo.org>
Wed, 20 Jun 2018 06:26:37 +0000 (06:26 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 Apr 2019 14:59:26 +0000 (16:59 +0200)
Some vpn clients pass multiple domains for DNS search scope, which
requires that we use search rather than domain. The generic path was
already using search, so just switch the resolvconf path to also use
search.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
vpnc-script

index 7b7823f9e7432cbffaf41ee480793e0240f4cee8..a046e6534df2ab58db45379f72c91d8a316881fa 100755 (executable)
@@ -682,7 +682,7 @@ nameserver $i"
        done
        if [ -n "$CISCO_DEF_DOMAIN" ]; then
                NEW_RESOLVCONF="$NEW_RESOLVCONF
-domain $CISCO_DEF_DOMAIN"
+search $CISCO_DEF_DOMAIN"
        fi
        echo "$NEW_RESOLVCONF" | /sbin/resolvconf -a $TUNDEV
 }