Skip to content

il0/DNS-speed-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DNS-speed-test

Fast DNS is critical, but rarely measured properly. This tool benchmarks DNS performance from your endpoint, tracks latency and reliability over time, and helps you understand how your resolvers actually perform in real-world conditions so you may update your router's remote dns list (I hope you're not using the defaults offered by your ISP!) πŸ˜…


Features

  • Asynchronous Testing: Uses asyncio and dnspython to test multiple providers in parallel, making it extremely fast.
  • Historical Tracking: Saves results to dns_stats.csv with a dedicated IP column to monitor performance trends.
  • Visual Dashboard: Generates an dns_report.html file with interactive charts using Chart.js.
  • Location Management: Track performance from different locations (Home, Office, VPN, etc.).
  • Smart Ranking: Automatically sorts providers by fastest average latency.

Prerequisites

  • Python 3.7+
  • dnspython library

You can install the required library using pip:

pip install dnspython

Usage

  1. Run the test:
    python3 dnstest.py
  2. Follow the prompts: Select an existing location or enter a new one.
  3. View results:
    • Check the terminal for immediate results.
    • Open dns_report.html in your browser to see the dashboard and trends.
    • Access the raw data in dns_stats.csv.

Included Providers

  • Cloudflare (1.1.1.1)
  • Google (8.8.8.8)
  • Quad9 (9.9.9.9)
  • OpenDNS (208.67.222.123)
  • Norton (199.85.126.20)
  • CleanBrowsing (185.228.168.168)
  • Level3 (4.2.2.1)
  • Neustar (156.154.70.3)
  • Comodo (8.26.56.26)
  • NextDNS (45.90.28.202)
  • Gcore (95.85.95.85)
  • Yandex (77.88.8.8)
  • Verisign (64.6.64.6)
  • DNS.WATCH (84.200.69.80)
  • AdGuard (94.140.14.14)

License

MIT

About

Fast DNS is critical, but rarely measured properly. This tool benchmarks DNS performance from your endpoint, tracks latency and reliability over time, and helps you understand how your resolvers actually perform in real-world conditions so you may update your router's remote dns list (I hope you're not using the defaults offered by your ISP!) πŸ˜…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages