I am trying to figure out how to do this properly. My servers use search-domain
to find the FQDN, so my code can connect using redis
as the host, etc.
I ran into a problem where the DNS provider for my domain was acting up and so "redis.example.com" wasn't working for a few seconds, which is not acceptable. I had to add the records manually to the host file while they fix their issue.
So my question is, what kind of DNS forwarder could I use for:
- Forward DNS requests to another server (example: 8.8.8.8)
- Cache records
- Use cached records, in case the DNS server is acting up, even if it means ignoring the TTL (my record's TTL is 60s but it's been 30 minutes since it requested from 8.8.8.8 last)
- Possibly always always cache and queue requesting from DNS server (so every 60s, latency doesn't go up a bit because it has to request it from the DNS server)
Any idea what I could do here? Or I'm I wishing for too much?