Forcing a domain name with the hosts file

Last update on August 16, 2009 02:58 PM by jak58
Published by jak58

[Networks]Forcing a domain name with the hosts file







Intro


The hosts file primarily allow you to manually set the IP address for a host present on the network spotted by a domain name.


Locating the hosts file


For Windows based systems:
C:\WINXP\system32\drivers\etc\hosts
C:\WINNT\system32\drivers\etc\hosts
C:\WINDOWS\system32\drivers\etc\hosts
C:\WINDOWS\hosts


For Linux based system:

The file is located in:

/etc/hosts



The hosts file will contains lines starting with #, except for:
127.0.0.1 localhost


This may be accompanied by other names on Linux based system.

This line means that hostname is localhost 127.0.0.1

In the same way, it is possible to define the name of the machine corresponding to Kioskea. www.kioskea.net

Tips


Redirect to 127.0.0.1 all the websites you want to filter.
Best answers for « Forcing a domain name with the hosts file » in :
DNS (Domain Name System) Show What is DNS? Each computer directly connected to the Internet has at least one specific IP address. However, users do not want to work with numerical addresses such as 194.153.205.26 but with a domain name or more specifically addresses (called...
Webmastering - Domain Name Show What is a Domain Name? An Internet website is defined by its URL. A website hosted by a free host (e.g. an Internet access provider) generally has an address such as: http://www.your-provider.com/yourname This type of address is rather difficult...
Hosts file or Lhost: update impossible ShowHosts file or Lhost: update impossible In the case you get the following error messages when trying to modify the Hosts file (or Lmhosts) in Microsoft Windows Vista from an administrator account: Access to...
Find an unused domain name ShowFind an unused domain name Finding an unused domain name is quite troublesome and tedious (a lot of time is required) Here is a site that could help many Webmaster for this purpose: Domize.com is a site to easily check the availability...
Search for domain names easily and rapidly ShowSearch for domain names easily and rapidly Domize.com Security? Make your search If you are losing much time looking for a domain name for your website, there are hassle-free solutions for you found in the web. You do not have to...
Download SWF Opener ShowSWF Opener is a reader allowing to read videos in format Flash (extension SWF) stocked in the hard disk, for instance in the temporary files of the browser. He allows to read videos in flash without Internet Explorer, possibly in full screen and...
Free - Internet service providers ShowIncoming mail server POP Server: pop.free.fr IMAP Server: imap.free.fr Outgoing mail server SMTP Server: smtp.free.fr Domain name servers Free Primary DNS: 212.27.32.5 Secondary DNS: 212.27.32.6 Free High Speed Primary DNS:...
Intranet - Installing a DNS ShowPackages needed for installation A DNS (domain name server) is a server that links names to the IP addresses of computers on a network. In order to set up such a server, it is necessary to install bind and named. They can be downloaded as RPM files...
Orange - Internet service providers ShowIncoming mail server POP server: pop.orange.fr IMAP server: imap.orange.fr Outgoing mail server SMTP server: smtp.orange.fr Domain name servers Primary DNS: 80.10.246.2 Secondary DNS: 80.10.246.129