Discussion:
[Dnsmasq-discuss] preemptive upstream dns refresh
Patrick Hemmer
2015-10-07 16:01:18 UTC
Permalink
I'm looking to use dnsmasq in a solution with unreliable and slow
upstream DNS servers.
The ideal solution would be if when fetching a record from dnsmasq, it
would cache the record according to the upstream TTL. If it has the
record already cached, but the TTL is over 50% to expiration, dnsmasq
would immediately respond to the query, but would also start trying to
refetch the record from the upstream server.

Similar type of behavior is used by many network protocols such as DHCP,
and even DNS itself (zone transfer refresh/expiry).

I've seen a few requests from this on the mailing list, such as
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg07555.html
That one indicates that the issue would be investigated after 2.67 was
released. Did this ever go anywhere?

Thanks

-Patrick
Simon Kelley
2015-10-07 20:59:14 UTC
Permalink
Nothing was done, but it would be an interesting thing to try. I've
added it to my list of stuff to do over the winter.


Cheers,

Simon.
Post by Patrick Hemmer
I'm looking to use dnsmasq in a solution with unreliable and slow
upstream DNS servers. The ideal solution would be if when fetching
a record from dnsmasq, it would cache the record according to the
upstream TTL. If it has the record already cached, but the TTL is
over 50% to expiration, dnsmasq would immediately respond to the
query, but would also start trying to refetch the record from the
upstream server.
Similar type of behavior is used by many network protocols such as
DHCP, and even DNS itself (zone transfer refresh/expiry).
I've seen a few requests from this on the mailing list, such as
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk
/msg07555.html
That one indicates that the issue would be investigated after 2.67 was
Post by Patrick Hemmer
released. Did this ever go anywhere?
Thanks
-Patrick
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...