ping -c 4 1.1.1.1 # reachability by IP: tests routing without DNS
ping -c 4 example.org # also tests DNS
traceroute example.org # hops to the destination (Windows: tracert)
mtr -rwc 50 example.org # ping + traceroute with loss statistics (apt install mtr-tiny)
Method: ping a public IP (works?) → ping a name (DNS works?) → ping the default gateway (ip route) → check the local interface. Hops that show * * * are often routers that do not answer probes and are not a problem on their own; look at loss and latency at the final hop. Many hosts block ping (ICMP), so a failed ping does not always mean "down": test the actual service with curl or nc -vz host port.