A simple Python tool to check which DNS server is fastest for your internet.
When you open a website, your system first asks a DNS server to get the IP address.
Some DNS servers are slow. This tool:
- Checks many DNS servers
- Measures their speed (latency)
- Shows which one is fastest for you
- ⚡ Fast checking using multithreading
- 🌐 Real network test using TCP (port 53)
- 📊 Clean and easy-to-read output
- 🏆 Shows fastest DNS automatically
- 📁 Saves results in CSV file
- Python 3 installed
- No extra libraries needed
git clone https://github.com/gaikwad-kunal/DNS-Optimizer.git
### Step 2: Go to folder
cd DNS-Optimizer
### Step 3: Run the script
python network_monitor.pyBelow is how the output looks:
After running, you will see something like:

🏆 Fastest DNS: Quad9 (9.9.9.9) → 2.17 ms
This means:
- Quad9 is the fastest for your network.
- You can use this DNS in your system/router.
The tool also saves results like this:
dns_results_YYYYMMDD_HHMMSS.csv
You can open it in Excel.
After finding the fastest DNS:
- Open Network Settings
- Change DNS manually
- Add the fastest IP (example:
9.9.9.9)
- Faster website loading
- Better gaming ping
- Network testing
- Learning networking
- Speed depends on your location
- Run the tool multiple times for accuracy
- Fastest DNS may change