DNS-tester: Check Multiple DNS Resolvers at Once
After working on DNS-collector, I built DNS-tester, a small tool to query multiple DNS resolvers in parallel and compare their responses.
This is useful for checking internal resolvers across datacenters, cloud or edge locations, or comparing public DNS providers such as Cloudflare, Google and Quad9. Looking at response times and TTLs can also help spot differences between DNS caches.
DNS-tester supports Do53, DoT, DoH and DoQ. Its main interface is an API, with a CLI for manual checks and a Prometheus exporter for monitoring.
For example, one lookup can report each resolver’s protocol, latency, TTL and answer:
Starting DNS lookup for domain: internal.company.com
DNS lookup succeeded for 7 out of 7 servers (3.2896 seconds total)
✅ udp://cache-dc1.company.com - Do53 - 18.23916ms - TTL: 600s - 10.1.1.100
✅ udp://cache-dc2.company.com:53 - Do53 - 15.13324ms - TTL: 515s - 10.1.1.100
✅ tcp://cache-aws.company.com:53 - Do53 - 29.19659ms - TTL: 8s - 10.1.1.100
✅ udp://cache-gcp.company.com:53 - Do53 - 17.18517ms - TTL: 313s - 10.1.1.100
❗ tcp://cache-edge.company.com - Do53 - 2411.55582ms - TTL: 598s - 10.1.1.100
✅ https://doh.company.com - DoH - 236.43650ms - TTL: 599s - 10.1.1.100
❗ tls://dot.company.com - DoT - 3278.41313ms - TTL: 599s - 10.1.1.100
The project is open source on GitHub. Feedback and contributions are welcome.
