diff options
author | Joel Johnson <mrjoel@lixil.net> | 2020-08-21 08:32:00 -0600 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2020-10-26 18:51:35 +0100 |
commit | d7db32440fd5d5eee015896ec19e583513bb9bae (patch) | |
tree | 5f1993fe0cac500a91f4c614591e7188c9bf4bf2 /package | |
parent | a4c1c169c391ac0b11e4c3e895b282f07585347c (diff) | |
download | upstream-d7db32440fd5d5eee015896ec19e583513bb9bae.tar.gz upstream-d7db32440fd5d5eee015896ec19e583513bb9bae.tar.bz2 upstream-d7db32440fd5d5eee015896ec19e583513bb9bae.zip |
dnsmasq: include IPv6 local nameserver entry
For IPv6 native connections when using IPv6 DNS lookups, there is no
valid default resolver if ignoring WAN DHCP provided nameservers.
This uses a runtime check to determine if IPv6 is supported on the host.
Signed-off-by: Joel Johnson <mrjoel@lixil.net>
Diffstat (limited to 'package')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 0fa3074f92..7ecc542b44 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -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 |