This script tests the connection to a specified URL and provides detailed timing information, useful for troubleshooting internet connectivity issues. It measures the time taken for various stages of the connection process, including:
Name lookup (DNS resolution) Connecting to the server Initiating data transfer Overall request completion This breakdown helps pinpoint potential bottlenecks in your network or the remote server.
./test_connection.sh <URL>
- Replace script_name.sh with the actual name of your script file.
- Replace with the website address you want to test the connection to.
./test_connection.sh https://www.google.com