[Dnsmasq-discuss] Domain specific TTL control options

Simon Kelley simon at thekelleys.org.uk
Thu Oct 7 21:03:15 UTC 2021

On 07/10/2021 11:29, Tobias via Dnsmasq-discuss wrote:
> Hi,
> it would be useful (at least for me), to have a "min-cache-ttl" variant
> that's no affecting all but only very specific domains, e.g.:
> min-cache-ttl=/example.net/600
> Afaik dnsmasq treats this generally as domain suffixes for matching,
> which I dislike. I think for this this in particular but also e.g. for
> "address" it would be useful to be able to not match only suffixes but
> also single addresses, e.g. restricting the TTL of "example.net" but not
> "www.example.net". Given that it almost looking like an regexp, what
> about this for single domain matching:
> min-cache-ttl=/^example.net/600
> (Just kidding, that syntax would probably cause confusion, but single
> domain matching would still be nice.)
> The same could apply for "neg-ttl", "max-ttl" and "max-cache-ttl" I assume.
> Thanks!

Difficult to determine if this would be a generally useful feature. I'm
interested in the list's opinions.


More information about the Dnsmasq-discuss mailing list