Can I configure a DNS cache not to forward AAAA queries?

Posted by itsadok on Server Fault See other posts from Server Fault or by itsadok
Published on 2013-11-11T09:06:55Z Indexed on 2013/11/11 9:59 UTC
Read the original article Hit count: 408

Filed under:
|
|

I'm setting up an internal DNS cache because my firewall is having trouble handling all the sessions created by DNS requests. I tried using bind9, dnsmasq and DJB dnscache, they all help reduce the number of requests leaving my network, but there are still a lot of request being made.

Looking at the log files, and tcpdump and dnstop outputs, it seems that requests that return SERVFAIL do not get cached at all. And a lot of those failed requests are AAAA requests, which is a shame, because I do not have ipv6 enabled on any server.

I've looked at several ways to help the situation, and I think if I could somehow prevent AAAA record requests from being forwarded by the DNS cache, it would reduce the number of requests significantly.

The closest thing I found was the filter-aaaa-on-v4 option in BIND9. However, this only removes the record from the server response, and does not prevent it from forwarding it.

Any help would be appreciated.

© Server Fault or respective owner

Related posts about dns

Related posts about IPv6