# netstat -nr | grep '^default'
Am I correct in inferring that you have used Unix for a very very long time? The ^ stopped being a magic character in Unix shells a long time ago, but many old-timers (myself included) still sometimes quote it out of habit.
Re:Poll: Which is your 'test connection page'?
by bradleyland on Tuesday May 10, 2011 @02:27PM
(#2533568)
I've only been using Unix for about 10 years, but I quote arguments to grep out of habit. I find it easier (probably mental laziness) to just single quote everything I feed to grep, rather than mentally parsing what I'm about to type and deciding whether it requires quotes. So basically, I've substituted an extra two characters for my ever decreasing mental acuity :)
1. Fire up Terminal
2. Check loopback
3. Identify default gateway 4. Ping whatever gateway I find 5. Try a known good IP address 6. Check to see if the resolver is working (get root servers) 7. Check to see if I can resolve specific hostnames (try a known good one first) 8. Check the specific hostname I'm trying to reach (but failed) 9. Try a name server other than the one I'm using 10. Test IP routing to the destination IP 10. Assuming each of these passes, you can safely say the target service is downEach successive step is taken only if the preceding fails.