Service local_unbound first-run /etc/resolv.conf file in the IPv6 address describing a conversion. To convert the IPv6 address as the hostname, so do not properly forward. This patch has not fully tested. How-To-Repeat: ---- example.sh #!/bin/sh gen_forward_conf() { echo "# Generated by $self" echo "forward-zone:" echo " name: ." for forwarder ; do if expr "${forwarder}" : "^[0-9:.]\{1,\}$" >/dev/null ; then echo " forward-addr: ${forwarder}" else echo " forward-host: ${forwarder}" fi done } gen_forward_conf 192.0.2.0 127.0.0.1 2001:db8::1 ::1 FE80::1 localhost HOGEHOGE exit ---- example.sh > sh example.sh # Generated by forward-zone: name: . forward-addr: 192.0.2.0 forward-addr: 127.0.0.1 forward-host: 2001:db8::1 forward-addr: ::1 forward-host: FE80::1 forward-host: localhost forward-host: HOGEHOGE
Sorry I didn't notice this when it arrived. I will fix it ASAP and MFC to stable/10 so it is included in 10.1.
A commit references this bug: Author: des Date: Mon Sep 8 09:16:07 UTC 2014 New revision: 271255 URL: http://svnweb.freebsd.org/changeset/base/271255 Log: Fix support for IPv6 nameservers. PR: 188931 Submitted by: Takefu <takefu@airport.fm> MFC after: 3 days Changes: head/usr.sbin/unbound/local-setup/local-unbound-setup.sh
Merged to stable/10 in r271759.