DNS caching happens on your computer regardless of the operating system. What does this mean? Every website has a static ip address. Example: 74.125.47.99 is www.Google.com. Your computer travels out your modem/router and goes to your DNS servers where the friendly name (i.e. www.google.com) is converted to an ip address where your computer is “routed” to its destination
How do you find out? Simply “ping” the website and look for the numbers. Even if you get a “Requested Time Out”, you will see the ip address.
Now, find your hosts file by looking in the directories listed below and enter the ip address followed by the web address.
-Where Your Hosts File is Located-
| Linux/Unix |
/etc/hosts |
| Windows 3.1/95/98/ME |
c:\windows\hosts |
| Windows NT/2000/XP Pro |
c:\winnt\system32\drivers\etc\hosts or c:\windows\system32\drivers\etc\hosts |
| Windows XP Home |
c:\windows\system32\drivers\etc\hosts |
| Netware |
SYS:ETC/HOSTS |
| Apple |
System Folder:Preferences and in the System Folder itself |
-Sample Entry- (open with your text editor “notepad” or “vi”)
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
74.125.47.99 www.Google.com
Note the above example is an example of how you can use the hosts file for your benefit. Speeding up your surfing while bypassing your DNS servers. Below is an example of how you can protect your system. Simply download the files and add your good ip to urls (like the Google exampe above). This will help protect you against ads, malware, etc.
http://www.hosts-file.net/?s=Download
(Remember that you need to look through the file to make sure you have valid links - example if your website has
127.0.0.1 www.yourfavorite.com then you will not be able to go to the website. You will need to enter a valid ip address by ping the website. You may also see websites that may be offensive in the hosts file. These entries have 127.0.0.1 in them and prevent your computer from going to these sites.
Important Read!
NOTE: Large hosts files can slow your system down IF YOU LEAVE the DNS Client in your Services option enabled. This is found under the control panel under Administrative Tools. The DNS client caches previous DNS requests into memory including the HOSTS file can cause a slowdown. This service is unnecessary and can be disabled.