[Resolvconf-devel] Bug#635470: resolvconf: Feature request: DHCPv6 support
Geoffrey Sisson
geoff at geoff.co.uk
Tue Jul 26 03:02:29 UTC 2011
Package: resolvconf
Version: 1.58
Severity: wishlist
Tags: ipv6 patch
This patch adds basic DHCPv6 support for resolvconf. It's unlikely
that this is a comlete patch. For example, some applications might
resonably expect "resolvconf -d eth0" to remove both the IPv4 and
IPv6 interface information. However, it does provide basic DHCPv6
functionality.
Geoff
------------------------ Begin included text ------------------------
--- resolvconf.orig/etc/dhcp/dhclient-enter-hooks.d/resolvconf
+++ resolvconf/etc/dhcp/dhclient-enter-hooks.d/resolvconf
@@ -15,6 +15,10 @@
# Delete resolv.conf info
[ ! "$interface" ] || /sbin/resolvconf -d "$interface"
;;
+ EXPIRE6|RELEASE6|STOP6)
+ # Delete resolv.conf info
+ [ ! "$interface" ] || /sbin/resolvconf -d "${interface}_ip6"
+ ;;
esac
# For safety, undefine the nasty default make_resolv_conf()
make_resolv_conf() {
@@ -44,5 +48,20 @@
[ ! "$interface" ] || echo -n "$R" | /sbin/resolvconf -a "$interface"
}
;;
+ BOUND6|RENEW6|REBIND6)
+ make_resolv_conf() {
+ R=""
+ if [ "$new_dhcp6_name_servers" ] && [ "$new_dhcp6_domain_search" ] ; then
+ R="${R}search $new_dhcp6_domain_search
+"
+ fi
+ for nameserver in $new_dhcp6_name_servers ; do
+ touch /tmp/$nameserver
+ R="${R}nameserver $nameserver
+"
+ done
+ [ ! "$interface" ] || echo -n "$R" | /sbin/resolvconf -a "${interface}_ip6"
+ }
+ ;;
esac
fi
------------------------- End included text -------------------------
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.39-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages resolvconf depends on:
ii coreutils 8.5-1 GNU core utilities
ii debconf [debconf-2.0] 1.5.40 Debian configuration management sy
ii lsb-base 3.2-27 Linux Standard Base 3.2 init scrip
resolvconf recommends no packages.
resolvconf suggests no packages.
More information about the Resolvconf-devel
mailing list