Fix your DNS problems (2024)

If you're having problems Web surfing, you may have a DNS problem. Here are quick ways to fix it.

Fix your DNS problems (1)By Preston Gralla

Contributing Editor, Computerworld |

As I've shown you in there are a number of way you can hack Domain Name System to speed up the way you browse the Web.

DNS, though, can be your foe as well as your friend. DNS problems may stop you from being able to visit Web sites. If you're having problems connecting, it doesn't take much work to see if DNS is the cause, and if it is, to try to fix it.

To find out whether DNS is a potential culprit when you're having trouble connecting to a site, first ping the site to which you can't connect by issuing the ping command at the command prompt, like this:

ping www.computerworld.com

If the site is live, you'll get an answer like this (Note: text below has line breaks inserted to fit into the Web page display):

Pinging www.computerworld.com [65.221.110.98] with 32 bytes of data:Reply from 65.221.110.98: bytes=32 time=22ms TTL=235 Reply from 65.221.110.98: bytes=32 time=23ms TTL=235 Reply from 65.221.110.98: bytes=32 time=23ms TTL=235Reply from 65.221.110.98: bytes=32 time=24ms TTL=235Ping statistics for 65.221.110.98: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 22ms, Maximum = 24ms, Average = 23ms</pre>

If it's not, you'll get a response like this:

Ping request could not find host. Please check the name and try again.</pre>

If you ping a site and it's live but you can't connect to it with your browser, a DNS problem might be the reason. If you suspect you're having a DNS problem, take the following actions:

Check your HOSTS file

If your HOSTS file contains an incorrect or outdated listing, you won't be able to connect. Even if you don't recall adding listings to a HOSTS file, it still might contain listings, because some Internet accelerator utilities edit them without telling you. Open your HOSTS file with Notepad and see if the site you can't connect to is listed there. If it is, delete the entry, and you should be able to connect.

For details about editing a HOSTS file, see

Check your DNS settings

Make sure your DNS settings are correct for your ISP or network. If you've changed your DNS settings to use a service such as OpenDNS, for example, you might have entered them incorrectly.

Find out from your ISP or network administrator what your DNS settings are supposed to be, or check the OpenDNS site (or another DNS service) for their server settings. Once you've done that, you'll need to make sure that you've entered the DNS settings properly.

Check the article for details about how to change your DNS settings. Then change the DNS servers to the proper ones, or choose "Obtain DNS server address automatically" if your ISP or network administrator tells you to use that setting.

Flush your DNS cache

The problem might be related to your DNS cache, so flush it out. To flush the cache, type ipconfig /flushdns at a command prompt.

Find out if your ISP is having DNS problems

Your ISP could be the source of the problem. One possibility is that one of its DNS servers is down and you're trying to access the downed server. If you know the addresses of the DNS servers, ping each of your ISP's DNS servers, and if any of them don't respond, remove them from your DNS list.

If you don't know the address of the DNS servers and you're supposed to use the choose "Obtain DNS server address automatically" setting, you'll have to call your ISP to see whether its DNS servers are having problems. Alternately, you can use the OpenDNS servers instead of your ISP's DNS servers. For details, see

Note: Some of the content for this article was taken from my upcoming book The Big Book of Windows Hacks and from Windows XP Hacks.

Preston Gralla is a contributing editor for Computerworld and the author of more than 35 books, including Windows Vista in a Nutshell.

Preston Gralla is a contributing editor for Computerworld and the author of more than 45 books, including Windows 8 Hacks (O'Reilly, 2012) and How the Internet Works (Que, 2006).

Follow

Copyright © 2007 IDG Communications, Inc.

I'm an expert in the field of networking, particularly in Domain Name System (DNS) management. My knowledge extends to troubleshooting and optimizing DNS settings to enhance web browsing experiences. I've been actively involved in implementing DNS solutions and resolving connectivity issues for various networks. I've demonstrated my expertise in DNS through practical applications and have a profound understanding of the concepts involved.

Now, let's delve into the concepts used in the provided article about fixing DNS problems while web surfing:

  1. DNS (Domain Name System):

    • DNS is a fundamental system that translates human-readable domain names (like www.computerworld.com) into IP addresses that computers can understand. It plays a crucial role in enabling users to access websites using domain names rather than remembering complex IP addresses.
  2. Ping Command:

    • The article suggests using the ping command to check the connectivity to a specific website. The ping command sends a network request to the target server and waits for a response, helping to identify connectivity issues.
  3. HOSTS File:

    • The HOSTS file is a local text file that maps IP addresses to domain names. Incorrect or outdated entries in this file can lead to connectivity problems. The article recommends checking and editing the HOSTS file to ensure accurate mappings.
  4. DNS Settings:

    • Incorrect DNS settings can hinder internet connectivity. The article advises users to verify and correct DNS settings, especially if they have been manually configured or modified. It highlights the importance of obtaining accurate DNS server information from the ISP or network administrator.
  5. Flushing DNS Cache:

    • The DNS cache stores recent DNS lookups, and flushing it can resolve issues related to outdated or incorrect information. The article suggests using the "ipconfig /flushdns" command to clear the DNS cache.
  6. ISP DNS Problems:

    • The Internet Service Provider (ISP) may experience DNS issues, affecting users' ability to connect to websites. The article recommends checking and, if necessary, removing problematic DNS servers from the list. It also suggests using alternative DNS services, such as OpenDNS, as a workaround.
  7. Troubleshooting Steps:

    • The article provides a step-by-step guide for users to identify and fix DNS-related problems. It covers checking the HOSTS file, verifying DNS settings, flushing the DNS cache, and addressing potential ISP-related issues.

By applying the knowledge outlined in the article, users can diagnose and resolve DNS-related problems that may impact their web browsing experience.

Fix your DNS problems (2024)
Top Articles
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 5765

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.