*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> hosts (4)              
Title
Content
Arch
Section
 

Contents


 hosts(4)                                                           hosts(4)




 NAME    [Toc]    [Back]
      hosts - host name data base

 DESCRIPTION    [Toc]    [Back]
      The file /etc/hosts associates Internet (IP) addresses with official
      host names and aliases.  This allows a user to refer to a host by a
      symbolic name instead of an Internet address.

      Note: This file must contain all addresses for local interfaces that
      ifconfig needs at boot time (see ifconfig(1M)).  When using the name
      server (see named(1M)), or Network Information Service (see
      ypserv(1M)), this file often serves as a backup when the server is not
      running.  In such circumstances, it is a common practice for
      /etc/hosts to contain a few addresses of machines on the local
      network.

      /etc/hosts should contain a single line for each host with the
      following information:

           internet_address   official_host_name   aliases

      The internet_address can be an IPv4 or IPv6 address specified in the
      conventional Internet dot notation.  See inet(3N) or inet6(3N) for
      more information on Internet address manipulation routines.

      aliases are other names by which a host is known.  They can substitute
      for the official_host_name in most commands.  For example:

           192.45.36.5     hpdxsg   testhost

      In this example, users can use remote login on hpdxsg by using the
      command:

           rlogin testhost

      instead of

           rlogin hpdxsg

      If your system is in a domain naming environment, an official host
      name consists of the full domain extended host name.  For example:

           192.45.36.5     hpdxsg.xsg.hp.com  hpdxsg  testhost

      A line cannot start with a blank (space or tab character).  Items are
      separated by any number or combination of space or tab characters
      (blanks).  A # character indicates the beginning of a comment.
      Characters from the # to the end of the line are not interpreted by
      routines that search the file.  Trailing blanks are allowed at the end
      of a line.




 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 hosts(4)                                                           hosts(4)




      For the Internet, this file is normally created from the official host
      database maintained at the Network Information Control Center (NIC),
      although local changes may be required to bring it up to date with
      respect to unofficial aliases and/or unknown hosts.

      Host names can contain any printable character other than a white
      space, newline, or comment character.

 EXAMPLES    [Toc]    [Back]
      See /etc/hosts.

 AUTHOR    [Toc]    [Back]
      hosts was developed by the University of California, Berkeley.

 SEE ALSO    [Toc]    [Back]
      gethostent(3N), inet(3N), nsswitch.conf(4).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
hosts Tru64 The host name data base
rhosts FreeBSD trusted remote host and user name data base
hosts.equiv FreeBSD trusted remote host and user name data base
phones FreeBSD remote host phone number data base
networks HP-UX network name data base
services FreeBSD service name data base
dbm IRIX data base subroutines
ndbm IRIX data base subroutines
protocols FreeBSD protocol name data base
services HP-UX service name data base
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service