mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-20 02:38:32 +00:00
Don't mess with the TTL of DNSSEC RRs.
This commit is contained in:
10
src/cache.c
10
src/cache.c
@@ -448,12 +448,14 @@ struct crec *cache_insert(char *name, struct all_addr *addr,
|
|||||||
int freed_all = flags & F_REVERSE;
|
int freed_all = flags & F_REVERSE;
|
||||||
int free_avail = 0;
|
int free_avail = 0;
|
||||||
|
|
||||||
|
/* Don't log DNSSEC records here, done elsewhere */
|
||||||
|
if (flags & (F_IPV4 | F_IPV6 | F_CNAME))
|
||||||
|
{
|
||||||
|
log_query(flags | F_UPSTREAM, name, addr, NULL);
|
||||||
|
/* Don;t mess with TTL for DNSSEC records. */
|
||||||
if (daemon->max_cache_ttl != 0 && daemon->max_cache_ttl < ttl)
|
if (daemon->max_cache_ttl != 0 && daemon->max_cache_ttl < ttl)
|
||||||
ttl = daemon->max_cache_ttl;
|
ttl = daemon->max_cache_ttl;
|
||||||
|
}
|
||||||
/* Don't log keys here, done elsewhere */
|
|
||||||
if (flags & (F_IPV4 | F_IPV6 | F_CNAME))
|
|
||||||
log_query(flags | F_UPSTREAM, name, addr, NULL);
|
|
||||||
|
|
||||||
/* if previous insertion failed give up now. */
|
/* if previous insertion failed give up now. */
|
||||||
if (insert_error)
|
if (insert_error)
|
||||||
|
|||||||
Reference in New Issue
Block a user