Introduction
The hosts file, /etc/hosts on Linux and Unix, associates IP addresses with host
names without asking a name server. It is still used while a system starts, with NIS and on isolated
machines.
Structure
A text file with one line per host: the IP address, the canonical host name and optional aliases, separated
by spaces or tabs. Text from # to the end of a line is a comment.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the rules for host names are in the hosts(5) manual page.
- Viewer: the site has no viewer for this format.
Links
Reference
- hosts(5) – static table lookup for hostnames