home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / ISP / bind.4.8.3.lzh / BIND483 / EXAMPLES / h2n.man < prev    next >
Text File  |  1994-01-09  |  5KB  |  148 lines

  1. NAME
  2.  
  3.     h2n - Translate host table to name server file format
  4.  
  5. SYNOPSIS
  6.  
  7.     h2n -d DOMAIN -n NET [options]
  8.  
  9. DESCRIPTION
  10.  
  11.     h2n translates /etc/hosts to DNS files and creates a BIND boot file.
  12.     This tool can be run once or many times.  After converting your host
  13.     table to DNS format, you can manually maintain the DNS files, or you
  14.     can maintain the host table and run h2n each time you modify
  15.     /etc/hosts.  h2n automatically increments the serial number in each DNS
  16.     file when it makes a new one.
  17.  
  18.     h2n generates files starting with the prefix "db."  These are called
  19.     "db files."  The domain data is stored in a file called db.DOMAIN,
  20.     where DOMAIN is the first label in your domain name (given with the -d
  21.     option).  The address-to-name data is stored in files named db.NET,
  22.     where NET is a network number (given with the -n option).
  23.  
  24.     Each time h2n is run, it generates the DNS files from scratch.  Any
  25.     changes you manually made to the DNS files are lost.  If you'd like to
  26.     add resource records to a db file generated by h2n, put your RRs in a
  27.     file prefixed with "spcl" instead of "db".  h2n will include this
  28.     file's data by adding a $INCLUDE directive to the end of the db file.
  29.  
  30.     By default, h2n will generate an MX record with a weight of 10 that
  31.     points to the host itself as the mail exchanger.  MX records can be
  32.     suppressed with -M.  Additional MX records can be added with -m.  To
  33.     suppress generating the default MX record for a host, include "[no
  34.     smtp]" in that host's host table comment.
  35.  
  36.     By default, h2n will create a boot file, ./boot.cacheonly, for a
  37.     caching only name server.  If either of the -z or -Z options are used,
  38.     h2n creates a boot file, named ./boot.sec.save or ./boot.sec
  39.     respectively, for a secondary name server.
  40.  
  41.     Options are:
  42.  
  43.         -b BOOTFILE
  44.         Use BOOTFILE instead of the default: ./named.boot.
  45.  
  46.     -c DOMAIN
  47.         Create CNAME records in the default domain for all the
  48.         hosts in DOMAIN.  Including more than one -c option is
  49.         allowed.
  50.  
  51.     -d DOMAIN
  52.         Your domain name is DOMAIN.
  53.  
  54.     -e DOMAIN
  55.         Eliminate all lines from the host table with names in
  56.         DOMAIN.  Including more than one -e option is allowed.
  57.  
  58.     -f FILE
  59.         Command line options are in a file called FILE.  This
  60.         option cannot be used within FILE.
  61.  
  62.     -h HOST
  63.         Use HOST in the fields of the SOA record that require a
  64.         hostname.  The default is the host on which you run h2n.
  65.  
  66.     -m WEIGHT:MX-HOST
  67.         Include an MX record for each host in your domain pointing
  68.         to MX-HOST at WEIGHT.  Including more than one -m option is
  69.         allowed.  Example:  -m 10:terminator.movie.edu -m
  70.         20:wormhole
  71.  
  72.     -n NET[:SUBNETMASK]
  73.         NET is your network number without the trailing zeros.
  74.         Including more than one -n option is allowed.  If
  75.         SUBNETMASK is provided, create data for each subnet of NET.
  76.         Example:  -n 192.249.249 -n 15.15.16:255.255.248.0
  77.  
  78.     -o REFRESH:RETRY:EXPIRE:MINIMUM
  79.         Change the default SOA values (10800:3600:604800:86400) to
  80.         the values provided.
  81.  
  82.     -s SERVER
  83.         List SERVER in each domain's NS records.  Including more
  84.         than one -s option is allowed.
  85.  
  86.     -t      Generate TXT records from the host table comments.  If "[no
  87.         smtp]" appears in a comment, it is ignored.
  88.  
  89.     -u USER
  90.         Use USER in the SOA mail address instead of root.  USER can
  91.         be a complete mail address as in:  me@a.b.c.
  92.  
  93.     -w      Generate WKS records that list the SMTP service over the
  94.         TCP protocol if an MX record is also created.
  95.  
  96.     -z ADDRESS
  97.         Create a boot file, ./boot.sec.save, for a secondary name
  98.         server that lists ADDRESS as the master to load from.  Save
  99.         a copy of the domain data in a backup file.  (This option
  100.         is similar to the -Z option.)
  101.  
  102.     -C COMMENT-FILE
  103.         Create resource records by using keys in the host table
  104.         comment field as indices into COMMENT-FILE.  COMMENT-FILE
  105.         contains "key:resource record" pairs like:  "720:IN HINFO
  106.         hp9000s720 hp-ux".  When h2n encounters "720" in the
  107.         comment section of the host table, it creates a resource
  108.         record by replacing the "720:"  with the host's canonical
  109.         name.
  110.  
  111.     -H HOSTFILE
  112.         Use HOSTFILE instead of /etc/hosts.
  113.  
  114.     -M      Don't generate MX records.
  115.  
  116.     -N SUBNETMASK
  117.         Apply SUBNETMASK to all network numbers instead of listing
  118.         each subnet with -n.  Specifying a subnet mask with -n
  119.         overrides the -N subnet mask for that network only.
  120.  
  121.     -Z ADDRESS
  122.         Create a boot file, ./boot.sec, for a secondary name server
  123.         that lists ADDRESS as the master to load from.  Do not save
  124.         a copy of the data in a backup file.  (This option is
  125.         similar to the -z option.)
  126.  
  127. EXAMPLES
  128.  
  129.     Create name server data for networks 192.249.249 and 192.253.253 in
  130.     movie.edu.
  131.  
  132.     h2n -d movie.edu -n 192.249.249 -n 192.253.253
  133.  
  134.     Create name server data for networks 192.249.249 and 192.253.253 in
  135.     movie.edu.  Eliminate lines in the host table that contain fx.movie.edu
  136.     and include MX records for all hosts pointing to the mail hub,
  137.     postmanrings2x.movie.edu.  Include all of the options in a file.
  138.  
  139.     h2n -f option_file
  140.  
  141.     option_file contains the following lines:
  142.  
  143.     -d movie.edu
  144.     -n 192.249.249
  145.     -n 192.253.253
  146.     -e fx.movie.edu
  147.     -m 50:postmanrings2x.movie.edu
  148.