See
BLT.
/etc/hosts: Text file for mapping hostnames to IP addresses
/etc/hosts is a simple text file of the form:
IP address name other name
127.0.0.1 localhost
216.240.40.165 foo.starshine.org foo
No comments are allowed. You can read more about /etc/hosts using the UNIX/Linux man pages:
man 5 hosts (section five of the man pages are for file formats)
.
Most UNIX systems and configurations will read the /etc/hosts file before attempting to perform any other sort of lookup (
DNS, NIS, LDAP, etc). However this can be subject to the settings in the /etc/nsswitch.conf file (and to the libraries against which system and other programs are linked).
Contributors
- () JimDennis - 22 Oct 2003
- If you edit this page: add your name here; move this to the next line; and if you've used a comment marker (your initials in parenthesis), include it before your WikiName.
Revision Comment
Page Ratings