[Dnsmasq-discuss] Server-specific cache settings

Geert Stappers stappers at stappers.nl
Fri Oct 25 22:10:45 BST 2019

On Fri, Oct 25, 2019 at 09:11:31PM +0100, Simon Kelley wrote:
> On 25/10/2019 20:37, Nate Collins wrote:
> > Hello,
> > 
> > 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.
> > 
> 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 for a
> long time.

And with dnsmasq being the local DNS plus DHCP server,
it does have _the_ most up-to-date records.

I do hope it does answer the question of the original poster.
If not, should o.p. say so. Preferable with the idea behind
the question.

Geert Stappers
Leven en laten leven

More information about the Dnsmasq-discuss mailing list