4 ms·
> Anybody know of any good tutorials for this specific use case? I've googled it a few times and they never seem too easy. While it's not exactly what you're l
by sangnoir 10y ago
> Anybody know of any good tutorials for this specific use case? I've googled it a few times and they never seem too easy.
While it's not exactly what you're looking for, you could use dnsmasq, you could use the "--min-cache-ttl" option to increase the TTL: but only up to an hour. You can patch the source to increase this time to suit your needs.
To exactly match your use-case dsnmasq would need to have a regular cache that respects upstream TTLs and a last-resort cache that doesn't.