The code to configure dnsmasq for IPv6 DNS servers is using "servers-file" incorrectly. As the dnsmasq man explains, this is for an external file of resolved names, not a list of DNS servers. ie, it is just a way of gather a bunch of "server=" statements. Instead, it should be using "resolv-file", or better, it should just append the IPv6 DNS servers to /tmp/resolv.conf
For now, I workaround with the following:
/jffs/scripts/services-start :
#!/bin/sh
# workaround ipv6 dns configuration bug
sleep 30
/bin/sed -r -i 's/server=/nameserver /' /tmp/resolv.dnsmasq
cat /tmp/resolv.dnsmasq >> /tmp/resolv.conf
service restart_dnsmasq
/jffs/scripts/dnsmasq.postconf :
#!/bin/sh
# workaround ipv6 dns configuration bug
/bin/sed -r -i 's/servers-file/#servers-file/' /etc/dnsmasq.conf
For now, I workaround with the following:
/jffs/scripts/services-start :
#!/bin/sh
# workaround ipv6 dns configuration bug
sleep 30
/bin/sed -r -i 's/server=/nameserver /' /tmp/resolv.dnsmasq
cat /tmp/resolv.dnsmasq >> /tmp/resolv.conf
service restart_dnsmasq
/jffs/scripts/dnsmasq.postconf :
#!/bin/sh
# workaround ipv6 dns configuration bug
/bin/sed -r -i 's/servers-file/#servers-file/' /etc/dnsmasq.conf
Last edited: