[FREE TOOL] net-benchmark โ Race Every DNS Phonebook, Pick The Fastest And Get Snappier Internet Free, No New Hardware
Your wifiโs fine โ the hidden lookup is whatโs lagging you. Every site you open, your device first asks a โphonebookโ (DNS) to turn baidu.com into a number it can dial. Slow phonebook = slow net, even on fast wifi.
net-benchmark is a free tool that races every phonebook so you grab the fastest = snappier internet, $0, no new hardware. Bonus: tests the private kind that hides which sites you visit. ![]()
Free + open source โ GitHub
๐ง the trick โ what this actually fixes (30 sec)
Calling a contact by name? Your phone secretly checks its phonebook for the number, then dials. The internetโs identical: name (taobao.com) โ phonebook (DNS) โ number (IP) โ site loads.
Everyone blames their wifi when sites crawl. Half the time itโs a slow or far-away phonebook
. There are loads of free ones (Cloudflare, Google, AliDNSโฆ) and the fastest for you depends on where you live โ no way to eyeball it.
net-benchmark just races 'em. Pings each a bunch, hands you cold numbers: whoโs quickest, whoโs flaky. Pick the winner, drop it in your router/phone, done. Free speed.
Also tests:
Private DNS (DoH/DoT) โ normal lookups are shouted in the open; your ISP or cafรฉ wifi sees every site you check. The encrypted kind hides it. This finds which private one is also fast.
DNSSEC โ checks the answer wasnโt swapped for a fake number (anti-scam).
Website speed too โ not just the phonebook, how fast real sites respond.
๐ฆ install โ one line (needs Python)
pip install net-benchmark
![]()
pip= Pythonโs app-store-in-a-command. Nopip? Grab Python from python.org first, itโs bundled.
๐ฏ DNS commands โ hunt your fastest phonebook (copy-paste)
# Auto-rank the top private (DoH) phonebooks for you
net-benchmark dns top --doh --limit 5
# Head-to-head: race two (here AliDNS vs DNSPod)
net-benchmark dns compare 223.5.5.5 119.29.29.29 --doh --iterations 3
# Full benchmark, private (DoH), export to Excel
net-benchmark dns benchmark \
--resolvers "223.5.5.5,119.29.29.29" \
--domains "baidu.com,taobao.com" \
--doh \
--doh-url "https://dns.alidns.com/dns-query,https://doh.pub/dns-query" \
--iterations 3 \
--formats excel
# Same but DoT + anti-fake (DNSSEC) check
net-benchmark dns benchmark \
--resolvers "223.5.5.5,119.29.29.29" \
--domains "baidu.com,taobao.com" \
--dot --dnssec-validate \
--iterations 5 --formats excel
# Babysit DNS for 2hrs, beep if lag spikes past 150ms
net-benchmark dns monitoring \
--resolvers "223.5.5.5,119.29.29.29" \
--dot --interval 30 --duration 7200 \
--alert-latency 150
![]()
223.5.5.5/119.29.29.29are just sample phonebooks (Chinaโs AliDNS & DNSPod). Swap in any โ Cloudflare1.1.1.1, Google8.8.8.8, whatever.
๐ website-speed commands โ spot the laggy sites (copy-paste)
# Race two sites
net-benchmark http compare baidu.com taobao.com --iterations 3 --show-details
# Benchmark a pile, export CSV + Excel
net-benchmark http benchmark \
--targets "https://www.baidu.com,https://www.taobao.com,https://www.jd.com,https://www.qq.com,https://www.163.com" \
--iterations 3 --formats csv,excel
# Rank by TTFB (how fast a site coughs up its first byte = first sign of life)
net-benchmark http top \
--targets "https://www.baidu.com,https://www.taobao.com,https://www.jd.com" \
--limit 3 --metric ttfb
# Watch sites for 1 min, alert if slow/failing
net-benchmark http monitoring \
--targets "https://www.baidu.com,https://www.taobao.com" \
--interval 10 --duration 60 \
--alert-latency 200 --alert-failure-rate 5
Exports JSON / CSV / Excel / PDF โ drop straight into a report or dashboard (Grafana, Prometheus).
๐ค who's this for + the numbers it spits out
Anyone whose net โfeels slowโ and wants proof of where the lag hides
Home-network / Pi-hole / router folks picking the best DNS
Privacy people who want encrypted-but-fast lookups
Devs troubleshooting connections
It doesnโt hand you the lucky-fast average โ it gives P95/P99 (the speed you get almost always) and jitter (steady vs bouncy). Real-world, not marketing.
simple-pimple: pip install net-benchmark โ race the phonebooks โ pick the fastest โ set it on your router โ
free speed. Credit: author frankovo on GitHub.

!