That way, you won't have to go out to a DNS server and wait for the response before visiting a web site. Open it in Notepad and enter the IP addresses and hostnames of your commonly visited web sites, like this:.
Each entry in the file should be on one line. The IP address should be in the first column, and the corresponding hostname in the next column. At least one space should separate the two columns. You can add comments to the file by preceding the line with a , in which case the entire line will be ignored by the file, or by putting a after the hostname, in which case only the comment after will be ignored.
You might want to comment on individual entries? Make sure to check your HOSTS file regularly and keep it up to date, or else you may deny yourself access to certain web sites. So, when you want to go to a site, XP first looks in its local DNS cache, called the resolve cache , to see whether the DNS information is contained there. That way, if it finds the information locally, it doesn't have to query a remote DNS server to find IP information.
The cache contains both negative and positive entries. Positive entries are those in which the DNS lookup succeeded, and you were able to connect to the web site. When XP looks in the cache, if it finds a positive entry, it immediately uses that DNS information and sends you to the requested web site. Negative entries are those in which no match was found, and you end up getting a 'Cannot find server or DNS Error' in your browser. Similarly, when XP looks in the cache and finds a negative entry, it gives you the error message without bothering to go out to the site.
Negative entries can lead to problems. When you try to make a connection to a site that has a negative entry in your cache, you'll get an error message, even if the site's problems have been resolved and it's now reachable.
You can solve this problem, though, using a Registry hack. By default, XP caches negative entries for five minutes. After five minutes, they're cleared from your cache. But if you'd like, you can force XP not to cache these negative entries, so that you'll never run into this problem. The value may already exist. If it does, edit its value to 0. If you like, you can have the entries stay alive for one second by giving it a value of 1. After you're done editing, exit the Registry. That command will flush your DNS cache?
You can also use the Registry to control the amount of time that positive entries are kept in the DNS cache. By default, they are kept for 24 hours. If it's already present, just edit the value.
For the value, enter the amount of time you want the entry to remain, in seconds, making sure to use Decimal as the base. Sometimes when you can't connect to a web site, the cause is a DNS problem. There are things you can do to solve these problems, though. If you're having trouble connecting, to find out if DNS is a potential culprit first ping [Hack 52] the site to which you can't connect, by issuing the ping command like this at the command prompt or Run box, like this:.
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:.
Even if you don't recall adding listings to a HOSTS file, it still may contain listings, because some Internet accelerator utilities edit them without telling you. If it is, delete the entry, and you should be able to connect. Check your DNS settings. Find out from your ISP or network administrator what yours are supposed to be. Then, to find out your current DNS settings, double-click on the problem connection in the Network Connections folder, choose Support Details, look at the bottom of the tab to find your DNS servers.
If they don't match what they're supposed to be, right-click on the problem connection and choose Properties. DNS works out of your view, behind the scenes. Before we do, just for good measure, verify that you can not pull up Google. If it does not pull up, try pulling up Google by keying in one of its IP addresses in the chart above instead of its name in the address bar. Yes: You simulated what the DNS server was supposed to do and it works for you.
It is definitely a DNS server problem. No: DNS is not a factor. You manually did the dirty work that the DNS server would normally do and it made no difference.
It is not an issue with the DNS server and the problem lies elsewhere. You would want to find out the IP addresses of those sites. One way to find out the IP address of a web server that is hosting the web site you are trying to access is by using the PING command from any computer that can view web pages does not need to be in your house.
Using the Ping command with the name of the website gives us the IP address. The "Reply from The first step would be to check your DNS server settings. If you find that it has a hard-coded specific IP address in your settings, try changing it to Obtain DNS server addresses automatically. After applying the change, see if your Internet web browsing works properly now. If that did not work, you may want to try to specify a different DNS server or servers.
There are also some popular free DNS servers available on the web. If you are still not able to view web pages, it may be a problem with the DNS Resolver on your computer. If you were able to run the ping command on a specific website and received Reply from The majority of home users do not use proxy servers. Sometimes spyware or malware may put server settings in there that can cause problems.
If you are using Internet Explorer, inside of Internet Explorer:. Normally, no boxes need to be checked on this screen, including any setting to use a proxy server.
If this was checked and you unchecked it and applied the change, odds are your Internet browsing will work properly now. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters.
Social Networking. Internet Culture. Internet Entertainment. Internet Security. Internet Browsers. Computer Repairs. Cell Phones. Consumer Electronics.
0コメント