How do I disable ipv6 dns queries in dnsmasq?
On my hosting, ipv6 is disabled at the sysctl level, but dnsmasq still sends ipv6 dns requests.
And, as a rule, these requests still do not receive responses, because there is no AAAA record.
Here's what it looks like in the log:
Oct 30 20:38:41 dnsmasq[8184]: query[SRV] _minecraft._tcp.fcraft.su from 127.0.0.1
Oct 30 20:38:41 dnsmasq[8184]: forwarded _minecraft._tcp.fcraft.su to 8.8.8.8
Oct 30 20:38:41 dnsmasq[12684]: query[A] fcraft.su from 127.0.0.1
Oct 30 20:38:41 dnsmasq[12684]: forwarded fcraft.su to 8.8.8.8
Oct 30 20:38:41 dnsmasq[12684]: reply fcraft.su is 190.115.29.78
Oct 30 20:38:41 dnsmasq[12684]: query[AAAA] fcraft.su from 127.0.0.1
Oct 30 20:38:41 dnsmasq[12684]: forwarded fcraft.su to 8.8.8.8
Oct 30 20:38:41 dnsmasq[12684]: reply fcraft.su is NODATA-IPv6
I want there to be only query[A]
queries and query[AAAA]
none.
I tested it with the min-cache-ttl=120
parameter, it doesn't help, nothing changes.
0
Author: Алексей Ковальчук, 2020-10-30