When I noticed my API calls were consistently 300ms slower than expected, I dug into the problem and found DNS resolution was the hidden culprit. That discovery led me to build the DNS Benchmark Tool — a Python CLI that helps developers, DevOps, and self‑hosters measure and compare DNS resolvers with real data.
Version 0.3.0 just dropped, and it adds three powerful commands:
- 🚀 top — quick ranking of resolvers by speed and reliability
- 📊 compare — side‑by‑side benchmarking with detailed statistics and export options
- 🔄 monitor — continuous performance tracking with alerts and logging
⚡ Quick Start
Install from PyPI:
pip install dns-benchmark-tool
Run your first comparison:
dns-benchmark compare --domain google.com
🎯 Why Benchmark DNS?
- ⏱️ Hidden Bottleneck: DNS can add hundreds of milliseconds to every request.
- 🌍 Location Matters: The “fastest” resolver depends on where you are.
- 🔒 Security Varies: DNSSEC, DoH, and DoT support differ across providers.
With this tool, you can:
- Find the fastest resolver for your region
- Validate DNSSEC and encrypted DNS support
- Monitor resolver performance over time
📊 Real‑Time Tracking
💼 Use Cases
- Developers: Optimize API latency by picking the fastest resolver
- DevOps/SRE: Validate DNS before migration or provider switch
- Self‑hosters: Compare Pi‑hole/Unbound against public DNS
- Privacy advocates: Test encrypted DNS without sacrificing speed
🌐 Roadmap
The CLI will stay free forever.
A hosted version (multi‑region, historical tracking, alerts) is coming in Q1 2026.
🔗 Links
- GitHub Repository
- PyPI Package
- Feedback form: Google Form
Built with Python + dnspython. Open to questions, feedback, and contributions!

Top comments (0)