dnsmasq: include IPv6 local nameserver entry
[openwrt/staging/chunkeey.git] / package / network / services / dnsmasq / files / dnsmasq.init
index 0fa3074f92ddab4c711208e16f9e86c8b09afd52..7ecc542b4469df02df70ce8f012fd01f45a58d91 100644 (file)
@@ -1066,6 +1066,7 @@ dnsmasq_start()
                        echo "search $DOMAIN" >> /tmp/resolv.conf
                }
                DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
+               [ -e /proc/sys/net/ipv6 ] && DNS_SERVERS="$DNS_SERVERS ::1"
                for DNS_SERVER in $DNS_SERVERS ; do
                        echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf
                done