| ||||||||||||||||||||
Back to Reference GuidesHOSTS file for LinuxHistory behind the hosts file During the 70s all the domain name to IP address was contained in a single file called the HOSTS.TXT file. A single for only a few hundred machines on the internet. Of course the load began to grow and eventually a different system supplanted it. The "/etc/hosts" file (without the txt) is now used primarily as a backup (or a cache) if the name servers are inaccessible. The format of each entry is: [internet address] [domain name] [alias] 127.0.0.1 www.elouai.com localhost
There is a lookup order which can be changed in /etc/host.conf The default order is hosts, bind:
order hosts,bind /etc/hosts.deny Describes the name of the hosts which are NOT allowed to use the local INET services. This file is called by "/usr/sbin/tcpd" /etc/hosts.allow Describes the name of the hosts which are ALLOWED to use local INET services. This file is called by "/usr/sbin/tcpd" references: Redhat Linux 8.0: Managing Hosts |
|
contact us: elouai@gmail.com ©2003-2009 eLouai.com, All rights reserved |