What's new

380.57 IPv6 misconfigures dnsmasq

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

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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