[Resolvconf-devel] Bug#635470: Acknowledgement (resolvconf: Feature request: DHCPv6 support)
Geoffrey Sisson
geoff at geoff.co.uk
Tue Jul 26 03:14:04 UTC 2011
The provided patch had a leftover debug statetment in it:
touch /tmp/$nameserver
Here's an updated version with the statement removed.
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,19 @@
[ ! "$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
+ R="${R}nameserver $nameserver
+"
+ done
+ [ ! "$interface" ] || echo -n "$R" | /sbin/resolvconf -a "${interface}_ip6"
+ }
+ ;;
esac
fi
------------------------- End included text -------------------------
More information about the Resolvconf-devel
mailing list