|
|
|
|
|
by artificialLimbs
1679 days ago
|
|
#!/bin/zsh
ip addr | grep $localNetworkPrefix
ping $localGateway
ping 1.1.1.1
ping $DNS01
ping $DNS02
open -a Safari https://downdetector.com/status/%1
Do `chmod +x ./scriptname.sh` to make executable and run with argument (e.g. net.sh facebook) to check a particular service.Edit: Thanks @Shared404 |
|
You can use the following:
To get the default gateway that is the preferred one on macOS, so you don't need to hard code it. Will display the DNS servers/split DNS configuration as well.