[Dnsmasq-discuss] No caching unless recursion enabled?
Brad Morgan
b-morgan at concentric.net
Mon Jan 25 23:01:54 GMT 2016
> /* Don't put stuff from a truncated packet into the cache.
> Don't cache replies from non-recursive nameservers, since we may get a
> reply containing a CNAME but not its target, even though the target
> does exist. */
> if (!(header->hb3 & HB3_TC) &&
> !(header->hb4 & HB4_CD) &&
> (header->hb4 & HB4_RA) &&
> !no_cache_dnssec)
> cache_end_insert();
> Removing the
> (header->hb4 & HB4_RA) &&
> line will provide the behaviour you're seeking. I don't propose to make
this change in the distributed dnsmasq code.
I'd suggest adding a comment to the end of that line that reminds anyone
what removing it does (and then not removing the line but commenting it
out).
Brad
More information about the Dnsmasq-discuss
mailing list