What's new

380.57 IPv6 misconfigures dnsmasq

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

reardon

New Around Here
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
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top