You may have noticed your internet connection playing tricks on you for 20 minutes or so, resulting in you not able to load webpages. You just couldn't send any data out. The reason for that is because there's a hiccup with Google's DNS servers and here's how to fix it.

The simple instructions below come from Google's page on how to set up your connection with its public servers.

But since Google's the one that was having issues today, you'd want to swap out its servers (8.8.8.8 and/or 8.8.4.4) for something else. The most popular alternative on Twitter today was Level 3's (4.2.2.2), which you can always use to test if the problem is the DNS. There are other public DNS servers like OpenDNS out there too, and often, they are faster than the ones your ISP sets you up with.

Here are some instructions from Google itself on how to change the DNS servers for your connection:

Microsoft Windows

DNS settings are specified in the TCP/IP Properties window for the selected network connection.

Example: Changing DNS server settings on Microsoft Windows 7

  1. Go the Control Panel.
  2. Click Network and Internet, then Network and Sharing Center, and click Change adapter settings.
  3. Select the connection for which you want to configure Google Public DNS. For example:
  4. To change the settings for an Ethernet connection, right-click Local Area Connection, and click Properties.
  5. To change the settings for a wireless connection, right-click Wireless Network Connection, and click Properties.
  6. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
  7. Select the Networking tab. Under This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and then click Properties.
  8. Click Advanced and select the DNS tab. If there are any DNS server IP addresses listed there, write them down for future reference, and remove them from this window.
  9. Click OK.
  10. Select Use the following DNS server addresses. If there are any IP addresses listed in the Preferred DNS server or Alternate DNS server, write them down for future reference.
  11. Replace those addresses with the IP addresses of the Google DNS servers:
  12. For IPv4: 8.8.8.8 and/or 8.8.4.4.
  13. For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844
  14. Restart the connection you selected in step 3.
  15. Test that your setup is working correctly; see Testing your new settings below.
  16. Repeat the procedure for additional network connections you want to change.
Mac OS X

DNS settings are specified in the Network window.

Example: Changing DNS server settings on Mac OS 10.5

  1. From the Apple menu, click System Preferences, then click Network.
  2. If the lock icon in the lower left-hand corner of the window is locked, click the icon to make changes, and when prompted to authenticate, enter your password.
  3. Select the connection for which you want to configure Google Public DNS. For example:
  4. To change the settings for an Ethernet connection, select Built-In Ethernet, and click Advanced.
  5. To change the settings for a wireless connection, select Airport, and click Advanced.
  6. Select the DNS tab.
  7. Click + to replace any listed addresses with, or add, the Google IP addresses at the top of the list:
  8. For IPv4: 8.8.8.8 and/or 8.8.4.4.
  9. For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844
  10. Click Apply and OK.
  11. Test that your setup is working correctly; see Testing your new settings below.
  12. Repeat the procedure for additional network connections you want to change.