๐ŸŒ [FREE TOOL] net-benchmark โ€” Fix Slow Internet By Picking The Best DNS

:globe_with_meridians: [FREE TOOL] net-benchmark โ€” Race Every DNS Phonebook, Pick The Fastest And Get Snappier Internet Free, No New Hardware



:globe_with_meridians: 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.

:high_voltage: 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. :backhand_index_pointing_down:

:link: 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 :no_mobile_phones:. 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:

  • :locked: 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.
  • :shield: DNSSEC โ€” checks the answer wasnโ€™t swapped for a fake number (anti-scam).
  • :globe_showing_europe_africa: Website speed too โ€” not just the phonebook, how fast real sites respond.
๐Ÿ“ฆ install โ€” one line (needs Python)
pip install net-benchmark

:light_bulb: pip = Pythonโ€™s app-store-in-a-command. No pip? 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

:light_bulb: 223.5.5.5 / 119.29.29.29 are just sample phonebooks (Chinaโ€™s AliDNS & DNSPod). Swap in any โ€” Cloudflare 1.1.1.1, Google 8.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
  • :snail: Anyone whose net โ€œfeels slowโ€ and wants proof of where the lag hides
  • :house: Home-network / Pi-hole / router folks picking the best DNS
  • :detective: Privacy people who want encrypted-but-fast lookups
  • :technologist: 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 โ†’ :rocket: free speed. Credit: author frankovo on GitHub.

1 Like