HP 3000 Manuals

To Create or Modify the Hosts File [ HP3000/iX Network Planning and Configuration Guide ] MPE/iX 5.0 Documentation


HP3000/iX Network Planning and Configuration Guide

To Create or Modify the Hosts File 

The host name data base file, (HOSTS.NET.SYS), associates internet
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.

When you have configured the name server, this file serves only as a
backup when the server is not running.  In this circumstance, it is a
common practice that HOSTS.NET.SYS contains a few addresses of machines
on the local network.

To create the hosts file, perform the following steps:

   1.  Copy the sample file, HOSTSAMP.NET.SYS, to HOSTS.NET.SYS.

   2.  Modify HOSTS.NET.SYS using any ASCII editor so that it contains
       information about the nodes on your network.

To modify an already existing HOSTS.NET.SYS file, simply use your editor
to update and save the existing file.

Enter a single line for each host, including the following information:

[internet address] [local host name] [aliases] 

A line cannot start with a space.  Items are separated by any number of
blanks and/or tab characters.  A pound sign (#) indicates the beginning
of a comment.

Network addresses are specified in dot format, with leading zeros omitted
and a period between each grouping.  (See example addresses in figure
12-2.)

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


NOTE It is very important that you omit the leading zeros in the network addresses. If you enter the leading zeros here, the domain name resolver will interpret the numbers as octal numbers.
__________________________________________________________________ | | | # This file contains information regarding the known hosts.| | # | | # The form for each entry is: | | # host IP address local host name host aliases | | # | | # Note: the entries cannot be preceded by a blank space. | | # | | 172.0.0.1 localhost loopback me myself local | | 192.41.12.100 bashful.loc1.inet.com bashful | | 192.41.11.114 happy.loc1.inet.com happy | | 192.41.11.413 queezy.loc1.inet.com queezy | | 192.41.112.122 sneezy.loc1.inet.com sneezy | | 192.41.124.4 mpmndda.loc1.inet.com mpmndda moose | | 192.41.124.6 mpmndwa.loc1.inet.com mpmndwa wabbit | | 192.41.114.132 mpmtchq.loc1.inet.com mpmtchq foo | | 192.41.110.16 mpmndiv.loc1.inet.com mpmndiv zephyr | | 192.41.110.82 abacus.loc1.inet.com abacus spots | | 192.41.112.161 camelot.loc1.inet.com camelot | | 192.41.112.166 bigblue.loc1.inet.com bigblue | __________________________________________________________________ Figure 12-2. Sample Hosts Configuration File Note that the IP addresses and host names used above are for purposes of the example only.


MPE/iX 5.0 Documentation