This script performs various network performance tests such as speed test, packet loss test, throughput test, latency test, DNS resolution test, server response test, and bandwidth test. It then allows the user to change their DNS settings and performs the tests again to compare the results.
-
Clone the repository:
git clone https://github.com/yourusername/DNS-Configurator.git cd DNS-Configurator
-
Install the required Python packages:
pip install -r requirements.txt
Run the script with Python:
python dns_config.py
- The script will first perform a series of network performance tests and print the results.
- It will then ask if you want to change your DNS settings. If you choose to change your DNS settings, it will set your primary DNS to 1.1.1.1 and your secondary DNS to 1.0.0.1 (Cloudflare's DNS servers).
- The script will run one last network performance test and print a table comparing the results of the tests before and after the DNS change.
This script uses several command line tools such as ping
, iperf3
, dig
, curl
, and speedtest-cli
, and changes the DNS settings using the networksetup command. These commands may not be available or may work differently depending on your operating system. This script is designed to work on macOS
, Linux
, and Windows
. If you're using a different operating system, you may need to modify the script.