HOSTS FILE

The 'hosts file' is a computer file used to store information on where to find a node on a computer network. This file maps hostnames to IP addresses. The 'hosts file' is used as a supplement to (or instead of) the domain name system on networks of varying sizes. This file is (unlike DNS) under the control of the user who is using the computer.

Contents
History
Other uses for the hosts file
See also
References and footnotes
External links

History


The ARPANET (predecessor to the Internet) had no domain name system for giving network nodes their own addresses. Because there was no centralized system for this purpose, each network node contained its own “map” of the network nodes that it needed to know about, and assigned them names that were memorable to the user. There was no system for ensuring that all systems on a network were called the same thing, nor was there a way to read some other user’s 'hosts file' to automatically obtain their copy.
The small size of the ARPANET permitted hosts files to be used with some convenience for some time. Network nodes typically had one address, and could have potentially many names. As individual TCP/IP computer networks started becoming popular, however, the hosts file became a large burden on system administrators—networks and network nodes were being added all the time—making maintenance of the hosts file a task which grew significantly.

Other uses for the hosts file


The hosts file has alternative uses, including filtering ads by having entries for known ad-servers redirect to machines without the advertising on them or more typically by redirecting references to ad-servers to the local address 127.0.0.1. This can save network bandwidth, as well, by eliminating a request to the DNS server normally used for obtaining address information, as well as by not downloading the advertisements. However, if the hosts file is to be used for this purpose, it must be kept up-to-date with lists of Internet servers known to host such content.
A more important use of the hosts file is to block known-bad domains and servers in the same manner used for blocking ad-servers.
The hosts file can also be “hijacked”, or used for malicious purposes. For example, adware, computer viruses, trojan horses, or other malware can edit the hosts file (particularly on Windows-based systems) to redirect traffic from a “safe” site (such as Google or Wikipedia) to sites hosting content that may be offensive or intrusive to the user or the user’s computer system. For example, a trojan (Qhosts) redirected traffic from search engines such as Google and AltaVista to a site specified by the author of the trojan horse. Mydoom.B (a malware program) blocked users from visiting sites regarding computer security and antivirus software, which also affected the Windows Update web site.
Typical location host file in Windows system is C:Windowssystem32driversetc folder or C:Winntsystem32driversetc
The format of this file looks like:

127.0.0.1 localhost

192.168.0.1 my_router router.mydomain.com

192.168.0.254 mywebserver www.mydomain.com


See also



Adblock

ARPANET

Computer virus

DNS

Resolv.conf

Malware

Spyware

TCP/IP

Trojan horse (computing)

Unix-like

Windows

References and footnotes


External links



How to Define Static hostnames for IP Addresses in Windows (counterpart of Linux's /etc/hosts file in Windows)

Why Should You Wait for Internet Propagation? – An alternative use to the hosts file
; Custom hosts files

Most Valuable Professional(MVP) site Updated monthly with free custom HOSTS file; information and instructions for installation. Focused on preventing unwanted advertisements & parasites. Numerous 3rd party awards and recognition(s).

Dan Pollock's hosts file A well maintained hosts file with updates almost daily,

Andrew Short’s Hosts file project – comprehensive hosts file

HPHosts – An ad blocking hosts file

The Security Now! podcast page on the hosts file

Mikes Ad-Blocking hosts file – available as a direct download to merge in, or as an installer

SCoooBY’s Hosts File – A large list of ad servers

Ad Blocking Lists – Peter Lowe’s List

Airelle Lists – Hosts files with a large blacklist of 500,000 sites
; Applications to Manage Hosts Files

Abelhadigital’s HostsMan 3.0 – A freeware application for hosts file management with auto-updates

Bluetack, B.I.S.S Hosts Manager

Funkytoad’s Hoster 3.1 – A free application to arrange, and edit hosts files

HostsMan 3.0.45 - Freeware (you can donate though) Updates/merges your Hosts file from multiple lists, also option of backing up and disabling hosts file

Mike Meyer’s HostsToggle 2.1 – An open source hosts file tool

KH Blocker – A free Microsoft Windows application which manages an ad-blocking hosts file

Ray Marron's Hostess – Freeware Microsoft Windows hosts file manager.

This article provided by Wikipedia. To edit the contents of this article, click here for original source.

psst.. try this: add to faves