Revision as of 17:04, 23 September 2005 by 220.127.116.11
If you suddenly can't get to the internet, the best thing to do is to find out exactly what's broken first. Makes sense, right? So, a quick checklist of things:
- run ifconfig and see the state of your interfaces; if a cable's come unplugged, you'll see that the interface isn't connected.
- ping your gateway to see if it's your LAN that's down
- ping something on the other side of your gateway (something in another subnet or outside your network, for example).
- ping a known-pingable IP address on the internet. If you can ping 18.104.22.168 but not google.com, then you know something is wrong with your DNS. Other public places that respond to public pings are: cisco.com, yahoo.com, apple.com, google.com and freebsdwiki.net. It might not be a bad idea to write down the IP addresses of one or two of those places for future reference.
- If it's been narrowed down to DNS, find out if it's your DNS or the DNS lookup itself that's causing a problem: try using dig or nslookup to do lookups against another DNS server.