Package: vpnc
Version: 0.5.1r254-1
Severity: minor
Tags: patch
Perhaps people don't use vpn servers the way I just setup a server, but I don't
think my changes it would hurt anyone else either, so I'd like to see this
change
added to vpnc-script.
My setup is that I don't set any INTERNAL_IP4_DNS server, but use an external
server. But, my folks like having the CISCO_DEF_DOMAIN set, for shorter domain
names.
Adding this script fixes the problem:
/etc/vpnc/vpnc-script-post-connect-action
#!/bin/sh
case "$DNS_UPDATE" in
*no|*NO|*No|*nO)
;;
*)
if [ -n "$CISCO_DEF_DOMAIN" ]; then
$MODIFYRESOLVCONF
fi
;;
esac
This could be added into vpnc-script by changing the if [ -n INTERNAL_IP4_DNS ]
check to also include the CISCO_DEF_DOMAIN.
Similarly for the disconnect script.
Thanks.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22.6
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages vpnc depends on:
ii libc6 2.7-3 GNU C Library: Shared libraries
ii libgcrypt11 1.2.4-2 LGPL Crypto library - runtime libr
Versions of packages vpnc recommends:
ii iproute 20070313-1 Professional tools to control the
ii resolvconf 1.37 nameserver information handler
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]