[Dnsmasq-discuss] Server-specific cache settings
simon at thekelleys.org.uk
Fri Oct 25 21:11:31 BST 2019
On 25/10/2019 20:37, Nate Collins wrote:
> I was wondering if it's possible to specify different cache sizes for different servers in dnsmasq.conf (or outright disable caching for one server). For example, if two upstream nameservers were configured - a local server which updates DNS records quickly, where you would want little or no cache as to get the most up-to-date records, and Google's DNS, for which you would want a larger cache as to not be querying it constantly.
> I didn't see anything obvious in the manpage or related wiki articles, so I thought I'd ask here.
> - Nate
The rate at which changes get propagated through the DNS depends on the
time-to-live values associated with each domain, and is not (or at least
shouldn't be ) controlled by which server is used. Similarly dnsmasq
caching honours TTL values, so if the domain wants you to have
up-to-date records, dnsmasq will not keep things in the cache fora long
More information about the Dnsmasq-discuss