Activity log for bug #6078

Date Who What changed Old value New value Message
2005-12-23 14:23:26 LeoRochael bug added bug
2005-12-23 14:24:35 LeoRochael description The vpnc-connect script that is bundled with ubuntu version of vpnc manipulates /etc/resolv.conf directly even when resolvconf is present. Despite the fact that this package suggests resolvconf (implying that vpnc colaborates with resolvconf). This patch is an attempt at adding resolvconf colaboration to vpnc. It works for me, YMMV, etc... --- /usr/sbin/vpnc-script.orig 2005-12-23 09:35:15.000000000 -0200 +++ /usr/sbin/vpnc-script 2005-12-23 10:06:17.000000000 -0200 @@ -160,6 +160,19 @@ fi write_resolvconf() { + if [ -x /sbin/resolvconf ]; then + ( + if [ -n "$CISCO_DEF_DOMAIN" ] ; then + echo domain "$CISCO_DEF_DOMAIN" + echo search "$CISCO_DEF_DOMAIN" + fi + for ip in "$INTERNAL_IP4_DNS" ; do + echo nameserver $ip + done + ) | /sbin/resolvconf -a $TUNDEV + return + fi + grep '^#@VPNC_GENERATED@' /etc/resolv.conf > /dev/null 2>&1 || cp -- /etc/resolv.conf "$RESOLV_CONF_BACKUP" NEW_RESOLVCONF="#@VPNC_GENERATED@ -- this file is generated by vpnc # and will be overwritten by vpnc @@ -202,6 +215,11 @@ } reset_resolvconf() { + if [ -x /sbin/resolvconf ] ; then + /sbin/resolvconf -d $TUNDEV + return + fi + if [ ! -e "$RESOLV_CONF_BACKUP" ]; then return fi The vpnc-connect script that is bundled with ubuntu version of vpnc manipulates /etc/resolv.conf directly even when resolvconf is present. Despite the fact that this package suggests resolvconf (implying that vpnc colaborates with resolvconf). Find attached a patch that is my attempt at adding resolvconf colaboration to vpnc. It works for me, YMMV, etc...
2005-12-23 14:26:50 LeoRochael bug added attachment 'vpnc-script.patch' (/usr/sbin/vpnc-script patch)
2006-01-02 11:20:34 Daniel Holbach vpnc: assignee motu
2006-01-02 11:20:52 Daniel Holbach bug added subscriber MOTU Reviewers Team
2006-02-17 16:04:21 Simon Huerlimann vpnc: status Unconfirmed Fix Released
2006-02-17 16:04:21 Simon Huerlimann vpnc: statusexplanation Looks like the patch has been included in package version 0.3.3+SVN20051028-2 released with Dapper.
2010-04-16 23:20:23 C.J. Collier vpnc (Ubuntu): status Fix Released Incomplete
2010-04-16 23:39:14 C.J. Collier vpnc (Ubuntu): status Incomplete Fix Committed
2010-06-10 08:22:47 David Futcher vpnc (Ubuntu): status Fix Committed Fix Released