Commit da48077
committed
dns: restore dns query cache ttl
Fixes: #57636
When c-ares was [updated](c5174f5e60) the default caching behavior changed.
> As of c-ares 1.31.0, the query cache is enabled by default with a TTL of 1hr. To disable the query cache, specify this option with a TTL of 0. The query cache is based on the returned TTL in the DNS message.
This PR restores the caching behavior by setting `qcache_max_ttl` to `0`.
This change in c-ares is reasonable; thus, as a follow up to this _fix_, we should implement a cache management API for DNS queries and then re-enable the new default cache value.1 parent 4868ca4 commit da48077
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| |||
0 commit comments