[vpnc-scripts 2/3] resolvconf: set search instead of domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 at gentoo.org>
---
 vpnc-script | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vpnc-script b/vpnc-script
index 6a55546..b185ad2 100755
--- a/vpnc-script
+++ b/vpnc-script
@@ -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
 }
-- 
2.14.1




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux