MKHOSTS(8) System Manager's Manual MKHOSTS(8)NAME
mkhosts - generate hashed host table
/usr/sbin/mkhosts [ -v ] hostfile
Mkhosts is used to generated the hashed host database used by one version of the library routines gethostbyaddr() and gethostbyname(). It
is not used if host name translation is performed by named(8). If the -v option is supplied, each host will be listed as it is added. The
file hostfile is usually /etc/hosts, and in any case must be in the format of /etc/hosts (see hosts(5)). Mkhosts will generate database
files named hostfile.pag and hostfile.dir. The new database is build in a set of temporary files and only replaces the real database if
the new one is built without errors. Mkhosts will exit with a non-zero exit code if any errors are detected.
hostfile.pag - real database filenames
hostfile.new.pag - temporary database filenames
SEE ALSO gethostbyname(3), gettable(8), hosts(5), htable(8), named(8)4.3 Berkeley Distribution May 23, 1986 MKHOSTS(8)
Check Out this Related Man Page
HTABLE(8) System Manager's Manual HTABLE(8)NAME
htable - convert NIC standard format host tables
/etc/htable [ -c connected-nets ] [ -l local-nets ] file
Htable is used to convert host files in the format specified in Internet RFC 810 to the format used by the network library routines. Three
files are created as a result of running htable: hosts, networks, and gateways. The hosts file may be used by the gethostbyname(3N) rou-
tines in mapping host names to addresses if the nameserver, named(8), is not used. The networks file is used by the getnetent(3N) routines
in mapping network names to numbers. The gateways file may be used by the routing daemon in identifying ``passive'' Internet gateways; see
routed(8C) for an explanation.
If any of the files localhosts, localnetworks, or localgateways are present in the current directory, the file's contents is prepended to
the output file. Of these, only the gateways file is interpreted. This allows sites to maintain local aliases and entries which are not
normally present in the master database. Only one gateway to each network will be placed in the gateways file; a gateway listed in the
localgateways file will override any in the input file.
If the gateways file is to be used, a list of networks to which the host is directly connected is specified with the -c flag. The net-
works, separated by commas, may be given by name or in Internet-standard dot notation, e.g. -c arpanet,128.32,local-ether-net. Htable
only includes gateways which are directly connected to one of the networks specified, or which can be reached from another gateway on a
If the -l option is given with a list of networks (in the same format as for -c), these networks will be treated as ``local,'' and informa-
tion about hosts on local networks is taken only from the localhosts file. Entries for local hosts from the main database will be omitted.
This allows the localhosts file to completely override any entries in the input file.
Htable is best used in conjunction with the gettable(8C) program which retrieves the NIC database from a host.
SEE ALSO intro(3N), gettable(8C), named(8)BUGS
If the name-domain system provided network name mapping well as host name mapping, htable would no longer be needed.
4.2 Berkeley Distribution May 22, 1986 HTABLE(8)
I have a dir of 1500+ dir. In these dirs is a file host, with a tag <x_tag>.
I need to :
1. grep for all dir that contain this host file that contain <x_tag>
2. print a list of these host files containing <x_tag>
is this better to egrep this? (5 Replies)
I need to check the size of all files in a DIR.Can any one help me out from this?
This is my code:
filenames=`ls -l | cut -c 55-90`
for f in $filenames
file access denied.
*files have read permission alone. (6 Replies)
I have a problem with file naming in linux. I have to create a file named like 11/22.csv but shell displays error: no such file or dir. Problem is / character in the file name. I searched unix linux naming concepts and it's restricted in OS. Please tell me if there's any other chance?
OS... (3 Replies)
Hello Unix experts:
I have dir where few files are there, i want to sort these files and write the output to some other file but i need filenames with filepath too
i have filenames like
so i want to sort my files on first 5 fields of... (2 Replies)