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)