Now that both Google Public DNS and OpenDNS offer an alternative, public DNS services anyone can opt to use instead of their service provider's DNS servers, the question is: how do you know if your DNS service isn't working properly and if you should switch? Reader Nicholas has the answer. He says:
The easiest way to determine if your chosen DNS servers are down, you can use nslookup or dig command line tools. Open a command line prompt (Select “Start > Run” and type “cmd” on a Windows machine, “Applications > Utilities > Terminal” on the Mac) and type:
If an IP address comes back and the web page appears to be loading properly in your browser, your DNS servers are working fine. If no address comes back, or an unexpected web page appears despite a successful dig, there is a problem. “dig” is the newer and recommended tool, but both should work fine for basic troubleshooting purposes.
A few months back I knew my DNS servers were screwy when I couldn't load certain web sites, but DownForEveryoneOrJustMe.com said those sites were up. At that point I switched my DNS service to OpenDNS and that solved the problem. Here's more on how to troubleshoot a flaky internet connection. Thanks, Nicholas!
Update: If you just want to see what DNS servers are fastest, benchmark your options with Namebench.