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 / DOC / BOG / file < prev    next >
Text File  |  1993-08-24  |  60KB  |  1,651 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                 NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee
  13.                           ffoorr BBIINNDD
  14.                         _R_e_l_e_a_s_e _4._8
  15.  
  16.                       Kevin J. Dunlap*
  17.                      Michael J. Karels
  18.  
  19.               Computer Systems Research Group
  20.                  Computer Science Division
  21.  Department of Electrical Engineering and Computer Sciences
  22.                   University of California
  23.                     Berkeley  CA  94720
  24.  
  25.  
  26.  
  27.  
  28.  
  29. 11..  IInnttrroodduuccttiioonn
  30.  
  31.         The Berkeley  Internet  Name  Domain  (BIND)  Server
  32.    implements  the  DARPA Internet name server for the UNIX|-
  33.    operating system.  A name server  is  a  network  service
  34.    that  enables  clients  to  name resources or objects and
  35.    share this information with other objects in the network.
  36.    This  in  effect  is  a  distributed data base system for
  37.    objects in a computer network.  BIND is fully intergrated
  38.    into  4.3BSD  network  programs  for  use  in storing and
  39.    retrieving host names and address.  The  system  adminis-
  40.    trator can configure the system to use BIND as a replace-
  41.    ment to the original host table lookup of information  in
  42.    the  network  hosts  file /_e_t_c/_h_o_s_t_s.  The default confi-
  43.    guration for 4.3BSD uses BIND.
  44.  
  45.  
  46. 22..  BBuuiillddiinngg AA SSyysstteemm wwiitthh aa NNaammee SSeerrvveerr
  47.  
  48.         BIND is comprised of two parts.   One  is  the  user
  49.    interface  called  the _r_e_s_o_l_v_e_r which consists of a group
  50.    of routines that reside in  the  C  library  /_l_i_b/_l_i_b_c._a.
  51.    Second is the actual server called _n_a_m_e_d.  This is a dae-
  52.    mon that runs in the background and services queries on a
  53. ____________________
  54.    *  The  author  was  an  employee  of  Digital  Equipment
  55. Corporation's  Ultrix Engineering Advanced Development Group
  56. and was on loan to CSRG when this work was done.  Ultrix  is
  57. a trademark of Digital Equipment Corporation.
  58.    |-UNIX is a Trademark of AT&T Bell Laboratories
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. SSMMMM::1111--22               NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  72.  
  73.  
  74.    given network port. The standard port for UDP and TCP  is
  75.    specified in /_e_t_c/_s_e_r_v_i_c_e_s.
  76.  
  77.    22..11..  RReessoollvveerr RRoouuttiinneess iinn lliibbcc
  78.  
  79.            When building your 4.3BSD system you  may  either
  80.       build  the  C  library to use the name server resolver
  81.       routines or use the host table lookup routines  to  do
  82.       host   name   and  address  resolution.   The  default
  83.       resolver for 4.3BSD uses the name server.
  84.  
  85.            Building the C library to  use  the  name  server
  86.       changes  the way _g_e_t_h_o_s_t_b_y_n_a_m_e(3N), _g_e_t_h_o_s_t_b_y_a_d_d_r(3N),
  87.       and  _s_e_t_h_o_s_t_e_n_t(3N)  do  their  functions.   The  name
  88.       server  renders  _g_e_t_h_o_s_t_e_n_t(3N) obsolete, since it has
  89.       no concept of a next  line  in  the  database.   These
  90.       library  calls  are  built  with the resolver routines
  91.       needed to query the name server.
  92.  
  93.            The _r_e_s_o_l_v_e_r is comprised of a few routines  that
  94.       build  query  packets  and exchange them with the name
  95.       server.
  96.  
  97.            Before building the C library, set  the  variable
  98.       _H_O_S_T_L_O_O_K_U_P        equal        to       _n_a_m_e_d       in
  99.       /_u_s_r/_s_r_c/_l_i_b/_l_i_b_c/_M_a_k_e_f_i_l_e. You then make and  install
  100.       the  C  library and compiler and then compile the rest
  101.       of the 4.3BSD system.  For more information  see  sec-
  102.       tion  6.6  of ``Installing and Operating 4.3BSD on the
  103.       VAX|=''.
  104.  
  105.  
  106.    22..22..  TThhee NNaammee SSeerrvviiccee
  107.  
  108.            The basic function of the name server is to  pro-
  109.       vide  information  about  network objects by answering
  110.       queries.  The specifications for this name server  are
  111.       defined  in  RFC1034, RFC1035 and RFC974.  These docu-
  112.       ments can be found in /_u_s_r/_s_r_c/_e_t_c/_n_a_m_e_d/_d_o_c in 4.3BSD
  113.       or  _f_t_ped from nic.ddn.mil. It is also recommeded that
  114.       you  read  the  related   manual   pages,    _n_a_m_e_d(8),
  115.       _r_e_s_o_l_v_e_r(3), and _r_e_s_o_l_v_e_r(5).
  116.  
  117.            The advantage of using a  name  server  over  the
  118.       host table lookup for host name resolution is to avoid
  119.       the need for a single  centralized  clearinghouse  for
  120.       all  names.  The authority for this information can be
  121.       delegated to the different organizations on  the  net-
  122.       work responsible for it.
  123. ____________________
  124.    |=VAX is a Trademark of Digital Equipment Corporation
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD               SSMMMM::1111--33
  138.  
  139.  
  140.            The host table lookup routines require  that  the
  141.       master  file for the entire network be maintained at a
  142.       central location by a few people.  This works fine for
  143.       small networks where there are only a few machines and
  144.       the  different  organizations  responsible  for   them
  145.       cooperate.  But this does not work well for large net-
  146.       works where machines cross organizational boundaries.
  147.  
  148.            With the name server, the network can  be  broken
  149.       into  a hierarchy of domains. The name space is organ-
  150.       ized as a tree according to organizational or adminis-
  151.       trative  boundaries.  Each  node,  called a _d_o_m_a_i_n, is
  152.       given a label, and the name of the domain is the  con-
  153.       catenation  of  all the labels of the domains from the
  154.       root to the current domain, listed from right to  left
  155.       separated by dots.  A label need only be unique within
  156.       its domain.   The  whole  space  is  partitioned  into
  157.       several  areas called _z_o_n_e_s, each starting at a domain
  158.       and extending down to the leaf domains or  to  domains
  159.       where  other  zones  start.  Zones  usually  represent
  160.       administrative  boundaries.   An  example  of  a  host
  161.       address  for  a  host at the University of California,
  162.       Berkeley would look as follows:
  163.  
  164.           _m_o_n_e_t.._B_e_r_k_e_l_e_y.._E_D_U
  165.  
  166.       The top level domain for educational organizations  is
  167.       EDU;  Berkeley  is a subdomain of EDU and monet is the
  168.       name of the host.
  169.  
  170.  
  171. 33..  TTyyppeess ooff SSeerrvveerrss
  172.  
  173.         There are several types of servers: Master, Caching,
  174.    Remote, and Slave.
  175.  
  176.    33..11..  MMaasstteerr SSeerrvveerrss
  177.  
  178.            A Master Server for a domain is the authority for
  179.       that  domain.   This  server  maintains  all  the data
  180.       corresponding to its domain.  Each domain should  have
  181.       at least two master servers, a primary master and some
  182.       secondary masters to provide  backup  service  if  the
  183.       primary is unavailable or overloaded.  A server may be
  184.       a master for multiple domains, being primary for  some
  185.       domains and secondary for others.
  186.  
  187.       33..11..11..  PPrriimmaarryy
  188.  
  189.               A Primary Master Server is a server that loads
  190.          its data from a file on disk.  This server may also
  191.          delegate authority to other servers in its domain.
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203. SSMMMM::1111--44               NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  204.  
  205.  
  206.       33..11..22..  SSeeccoonnddaarryy
  207.  
  208.               A Secondary Master Server is a server that  is
  209.          delegated  authority  and  receives  its data for a
  210.          domain from a primary master server.  At boot time,
  211.          the  secondary server requests all the data for the
  212.          given zone from the primary  master  server.   This
  213.          server  then  periodically  checks with the primary
  214.          server to see if it needs to update its data.
  215.  
  216.    33..22..  CCaacchhiinngg OOnnllyy SSeerrvveerr
  217.  
  218.            All servers are caching servers. This means  that
  219.       the server caches the information that it receives for
  220.       use until the data expires. A _C_a_c_h_i_n_g _O_n_l_y _S_e_r_v_e_r is a
  221.       server that is not authoritative for any domain.  This
  222.       server services queries and asks  other  servers,  who
  223.       have  the  authority, for the information needed.  All
  224.       servers keep  data  in  their  cache  until  the  data
  225.       expires, based on a time to live field attached to the
  226.       data when it is received from another server.
  227.  
  228.    33..33..  RReemmoottee SSeerrvveerr
  229.  
  230.            A Remote Server is an option given to people  who
  231.       would  like  to use a name server on their workstation
  232.       or on a machine that has a limited  amount  of  memory
  233.       and  CPU  cycles.  With this option you can run all of
  234.       the networking  programs  that  use  the  name  server
  235.       without  the name server running on the local machine.
  236.       All of the queries are serviced by a name server  that
  237.       is running on another machine on the network.
  238.  
  239.    33..44..  SSllaavvee SSeerrvveerr
  240.  
  241.            A Slave Server is a server that  always  forwards
  242.       queries  it  cannot satisfy locally to a fixed list of
  243.       _f_o_r_w_a_r_d_i_n_g servers instead  of  interacting  with  the
  244.       master  nameservers  for  the  root and other domains.
  245.       The queries to the _f_o_r_w_a_r_d_i_n_g  _s_e_r_v_e_r_s  are  recursive
  246.       queries.  There may be one or more forwarding servers,
  247.       and  they  are  tried  in  turn  until  the  list   is
  248.       exhausted.   A  Slave  and  forwarder configuration is
  249.       typically used when you do not wish all the servers at
  250.       a  give  site  to  be interacting with the rest of the
  251.       Internet servers.  A typically scenario would  involve
  252.       a  number of workstations and a departmental timeshar-
  253.       ing machine with Internet  access.   The  workstations
  254.       might   be  administratively  prohibited  from  having
  255.       Internet access.  To give the workstations the appear-
  256.       ance  of  access  to  the  Internet domain system, the
  257.       workstations could be Slave servers to the timesharing
  258.       machine  which  would forward the queries and interact
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD               SSMMMM::1111--55
  270.  
  271.  
  272.       with other nameservers  to  resolv  the  query  before
  273.       returning  the  answer.  An added benefit of using the
  274.       forwarding  feature  is  that  the   central   machine
  275.       develops  a  much  more  complete cache of information
  276.       that all the workstations can take advantage of.   The
  277.       use  Slave  mode  and  forwarding is discussed further
  278.       under the description of the named bootfile commands.
  279.  
  280.  
  281. 44..  SSeettttiinngg uupp YYoouurr OOwwnn DDoommaaiinn
  282.  
  283.         When setting up a domain that is going to  be  on  a
  284.    public  network the site administrator should contact the
  285.    organization in charge of the  network  and  request  the
  286.    appropriate  domain  registration  form.  An organization
  287.    that belongs to multiple networks (such as  _C_S_N_E_T,  _D_A_R_P_A
  288.    _I_n_t_e_r_n_e_t  and  _B_I_T_N_E_T) should register with only one net-
  289.    work.
  290.  
  291.    The contacts are as follows:
  292.  
  293.    44..11..  DDAARRPPAA IInntteerrnneett
  294.  
  295.            Sites that are already on the DARPA Internet  and
  296.       need information on setting up a domain should contact
  297.       HOSTMASTER@NIC..DDN..MIL..   You  may  also  want  to  be
  298.       placed on the BIND mailing list, which is a mail group
  299.       for people on the DARPA Internet  running  BIND.   The
  300.       group  discusses  future design decisions, operational
  301.       problems, and other related  topic.   The  address  to
  302.       request being placed on this mailing list is:
  303.  
  304.           _b_i_n_d-_r_e_q_u_e_s_t@_u_c_b_a_r_p_a.._B_e_r_k_e_l_e_y.._E_D_U..
  305.  
  306.  
  307.    44..22..  CCSSNNEETT
  308.  
  309.            A  _C_S_N_E_T  member  organization   that   has   not
  310.       registered  its  domain  name should contact the _C_S_N_E_T
  311.       Coordination  and  Information  Center  (_C_I_C)  for  an
  312.       application and information about setting up a domain.
  313.  
  314.            An organization that  already  has  a  registered
  315.       domain  name should keep the _C_I_C informed about how it
  316.       would like its mail routed.   In  general,  the  _C_S_N_E_T
  317.       relay  will  prefer to send mail via _C_S_N_E_T (as opposed
  318.       to _B_I_T_N_E_T or the _I_n_t_e_r_n_e_t) if possible. For an organi-
  319.       zation  on  multiple  networks, this may not always be
  320.       the preferred behavior. The _C_I_C  can  be  reached  via
  321.       electronic mail at _c_i_c@_s_h.._c_s.._n_e_t, or by phone at (617)
  322.       873-2777.
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. SSMMMM::1111--66               NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  336.  
  337.  
  338.    44..33..  BBIITTNNEETT
  339.  
  340.            If you are on the BITNET and need  to  set  up  a
  341.       domain, contact INFO@BITNIC.
  342.  
  343.  
  344. 55..  FFiilleess
  345.  
  346.         The name server uses several files to load its  data
  347.    base.   This  section  covers the files and their formats
  348.    needed for _n_a_m_e_d.
  349.  
  350.    55..11..  BBoooott FFiillee
  351.  
  352.            This is the file that is first  read  when  _n_a_m_e_d
  353.       starts  up.  This tells the server what type of server
  354.       it is, which zones it has authority over and where  to
  355.       get  its  initial data.  The default location for this
  356.       file is /_e_t_c/_n_a_m_e_d._b_o_o_t.  However this can be  changed
  357.       by  setting  the  _B_O_O_T_F_I_L_E  variable  when you compile
  358.       _n_a_m_e_d or by specifying the  location  on  the  command
  359.       line when _n_a_m_e_d is started up.
  360.  
  361.       55..11..11..  DDoommaaiinn
  362.  
  363.               A default domain  may  be  specified  for  the
  364.          nameserver using a line such as
  365.  
  366.              _d_o_m_a_i_n           _B_e_r_k_e_l_e_y.._E_d_u
  367.  
  368.          The name  server  uses  this  information  when  it
  369.          receives a query for a name without a ``..'' that is
  370.          not known.  When it receives one of these  queries,
  371.          it  appends  the  name  in  the second field to the
  372.          query name.  This is  an  obsolete  facility  which
  373.          will be removed from future releases.
  374.  
  375.       55..11..22..  DDiirreeccttoorryy
  376.  
  377.               The directory line specifies the directory  in
  378.          which the nameserver should run, allowing the other
  379.          file names in the boot file to  use  relative  path
  380.          names.
  381.  
  382.              _d_i_r_e_c_t_o_r_y        /_u_s_r/_l_o_c_a_l/_d_o_m_a_i_n
  383.  
  384.          If you have more than a couple of named files to be
  385.          maintained,  you  may wish to place the named files
  386.          in a directory such as /usr/local/domain and adjust
  387.          the  directory command properly.  The main purposes
  388.          of this command are to make sure named  is  in  the
  389.          proper  directory  when  trying to include files by
  390.          relative path names  with  $Include  and  to  allow
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD               SSMMMM::1111--77
  402.  
  403.  
  404.          named  to  run  in a location that is reasonable to
  405.          dump core if it feels the urge.
  406.  
  407.       55..11..33..  PPrriimmaarryy MMaasstteerr
  408.  
  409.               The line in the boot file that designates  the
  410.          server as a primary server for a zone looks as fol-
  411.          lows:
  412.  
  413.              _p_r_i_m_a_r_y          _B_e_r_k_e_l_e_y.._E_d_u   _u_c_b_h_o_s_t_s
  414.  
  415.          The first field specifies that the server is a pri-
  416.          mary  one  for the zone stated in the second field.
  417.          The third field is the name of the file from  which
  418.          the data is read.
  419.  
  420.       55..11..44..  SSeeccoonnddaarryy MMaasstteerr
  421.  
  422.               The line for a secondary server is similar  to
  423.          the primary except that it lists addresses of other
  424.          servers (usually primary servers)  from  which  the
  425.          zone data will be obtained.
  426.  
  427.              _s_e_c_o_n_d_a_r_y        _B_e_r_k_e_l_e_y.._E_d_u   _1_2_8.._3_2.._0.._1_0_1_2_8.._3_2.._0.._4 _u_c_b_h_o_s_t_s._b_a_k
  428.  
  429.          The first field specifies  that  the  server  is  a
  430.          secondary  master server for the zone stated in the
  431.          second field.  The two  network  addresses  specify
  432.          the  name  servers  that  are primary for the zone.
  433.          The secondary server gets its data across the  net-
  434.          work from the listed servers.  Each server is tried
  435.          in the order listed until it successfully  receives
  436.          the  data  from  a listed server.  If a filename is
  437.          present after the list of primary servers, data for
  438.          the zone will be dumped into that file as a backup.
  439.          When the server is  first  started,  the  data  are
  440.          loaded from the backup file if possible, and a pri-
  441.          mary server is then consulted  to  check  that  the
  442.          zone is still up-to-date.
  443.  
  444.       55..11..55..  CCaacchhiinngg OOnnllyy SSeerrvveerr
  445.  
  446.               You do not need a special  line  to  designate
  447.          that  a server is a caching server.  What denotes a
  448.          caching only server is  the  absence  of  authority
  449.          lines,  such  as  _s_e_c_o_n_d_a_r_y  or _p_r_i_m_a_r_y in the boot
  450.          file.
  451.  
  452.               All servers should have a line as  follows  in
  453.          the boot file to prime the name servers cache:
  454.  
  455.              _c_a_c_h_e                           ..    _r_o_o_t.._c_a_c_h_e
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467. SSMMMM::1111--88               NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  468.  
  469.  
  470.          All cache files listed will be  read  in  at  named
  471.          boot  time and any values still valid will be rein-
  472.          stated in the cache and the root nameserver  infor-
  473.          mation in the cache files will always be used.  For
  474.          information on cache file see section on _C_a_c_h_e _I_n_i_-
  475.          _t_i_a_l_i_z_a_t_i_o_n.
  476.  
  477.       55..11..66..  FFoorrwwaarrddeerrss   Any server can make use  of  _f_o_r_-
  478.          _w_a_r_d_e_r_s.   A _f_o_r_w_a_r_d_e_r is another server capable of
  479.          processing recursive queries that is willing to try
  480.          resolving  queries on behalf of other systems.  The
  481.          _f_o_r_w_a_r_d_e_r_s command specifies forwarders by internet
  482.          address as follows:
  483.  
  484.              _f_o_r_w_a_r_d_e_r_s                      _1_2_8.._3_2.._0.._1_0_1_2_8.._3_2.._0.._4
  485.  
  486.          There are two main reasons for wanting  to  do  so.
  487.          First,  the other systems may not have full network
  488.          access and may be prevent from sending any IP pack-
  489.          ets into the rest of the network and therefore must
  490.          rely on a forwarder which does have access  to  the
  491.          full  net.  The second reason is that the forwarder
  492.          sees a union of all queries as  they  pass  through
  493.          his  server  and therefore he builds up a very rich
  494.          cache of data compared to the cache  in  a  typical
  495.          workstation  nameserver.   In effect, the _f_o_r_w_a_r_d_e_r
  496.          becomes a meta-cache that  all  hosts  can  benefit
  497.          from,  thereby reducing the total number of queries
  498.          from that site to the rest of the net.
  499.  
  500.       55..11..77..  SSllaavvee MMooddee
  501.  
  502.               Slave mode is used if the use of forwarders is
  503.          the  only  possible  way  to resolve queries due to
  504.          lack of full net access or if you wish  to  prevent
  505.          the  nameserver  from  using  other than the listed
  506.          forwarders.  Slave mode is activated by placing the
  507.          simple command
  508.  
  509.              _s_l_a_v_e
  510.  
  511.          in the bootfile.  If _s_l_a_v_e is used, then  you  must
  512.          specify forwarders.  When in slave mode, the server
  513.          will forward each query to each of the the forward-
  514.          ers  until  an  answer is found or the list of for-
  515.          warders is exhausted.
  516.  
  517.       55..11..88..  RReemmoottee SSeerrvveerr
  518.  
  519.               To set up a host that will use a remote server
  520.          instead  of  a  local server to answer queries, the
  521.          file /_e_t_c/_r_e_s_o_l_v._c_o_n_f needs to  be  created.   This
  522.          file  designates  the  name  servers on the network
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD               SSMMMM::1111--99
  534.  
  535.  
  536.          that should be sent queries.  It is  not  advisable
  537.          to create this file if you have a local server run-
  538.          ning.  If this file exists it is read almost  every
  539.          time _g_e_t_h_o_s_t_b_y_n_a_m_e() or _g_e_t_h_o_s_t_b_y_a_d_d_r() is called.
  540.  
  541.    55..22..  CCaacchhee IInniittiiaalliizzaattiioonn
  542.  
  543.       55..22..11..  rroooott..ccaacchhee
  544.  
  545.               The name server needs to know the servers that
  546.          are  the  authoritative  name  servers for the root
  547.          domain of the network.  To do this we have to prime
  548.          the name server's cache with the addresses of these
  549.          higher authorities. The location of  this  file  is
  550.          specified  in  the  boot  file.  This file uses the
  551.          Standard Resource Record  Format  (aka.  Masterfile
  552.          Format) covered further on in this paper.
  553.  
  554.    55..33..  DDoommaaiinn DDaattaa FFiilleess
  555.  
  556.            There are three standard files for specifying the
  557.       data  for  a domain.  These are _n_a_m_e_d._l_o_c_a_l, _h_o_s_t_s and
  558.       _h_o_s_t._r_e_v.   These  files  use  the  Standard  Resource
  559.       Record Format covered later in this paper.
  560.  
  561.       55..33..11..  nnaammeedd..llooccaall
  562.  
  563.               This file specifies the address for the  local
  564.          loopback  interface, better known as _l_o_c_a_l_h_o_s_t with
  565.          the network address  127.0.0.1.   The  location  of
  566.          this file is specified in the boot file.
  567.  
  568.       55..33..22..  hhoossttss
  569.  
  570.               This file contains  all  the  data  about  the
  571.          machines  in  this zone.  The location of this file
  572.          is specified in the boot file.
  573.  
  574.       55..33..33..  hhoossttss..rreevv
  575.  
  576.               This file specifies the  IN-ADDR.ARPA  domain.
  577.          This  is  a  special domain for allowing address to
  578.          name mapping.  As internet host  addresses  do  not
  579.          fall  within domain boundaries, this special domain
  580.          was formed  to  allow  inverse  mapping.   The  IN-
  581.          ADDR.ARPA  domain  has  four  labels  preceding it.
  582.          These labels correspond  to  the  4  octets  of  an
  583.          Internet address. All four octets must be specified
  584.          even if an octets is zero.   The  Internet  address
  585.          128.32.0.4  is located in the domain 4.0.32.128.IN-
  586.          ADDR.ARPA.  This reversal of the address is awkward
  587.          to  read  but  allows  for  the natural grouping of
  588.          hosts in a network.
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599. SSMMMM::1111--1100              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  600.  
  601.  
  602.    55..44..  SSttaannddaarrdd RReessoouurrccee RReeccoorrdd FFoorrmmaatt
  603.  
  604.            The records in the name  server  data  files  are
  605.       called resource records.  The Standard Resource Record
  606.       Format (RR) is specified in RFC1035.  The following is
  607.       a general description of these records:
  608.  
  609.       {_n_a_m_e}   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _R_e_c_o_r_d _T_y_p_e   _R_e_c_o_r_d _S_p_e_c_i_f_i_c _d_a_t_a
  610.  
  611.       Resource records have a standard format  shown  above.
  612.       The  first  field  is  always  the  name of the domain
  613.       record and it must always start in column 1.  For some
  614.       RR's the name may be left blank; in that case it takes
  615.       on the name of the previous RR.  The second  field  is
  616.       an  optional  time  to live field.  This specifies how
  617.       long this data will be stored in the  data  base.   By
  618.       leaving  this  field blank the default time to live is
  619.       specified in the _S_t_a_r_t _O_f  _A_u_t_h_o_r_i_t_y  resource  record
  620.       (see  below).   The  third field is the address class;
  621.       currently, only one class is supported: _I_N for  inter-
  622.       net addresses and other information.  The fourth field
  623.       states the type of the resource  record.   The  fields
  624.       after  that are dependent on the type of the RR.  Case
  625.       is preserved in names and data fields when loaded into
  626.       the  name  server.  All comparisons and lookups in the
  627.       name server data base are case insensitive.
  628.  
  629.       TThhee ffoolllloowwiinngg cchhaarraacctteerrss hhaavvee ssppeecciiaall mmeeaanniinnggss::
  630.  
  631.       ..    A free standing dot in the name field  refers  to
  632.            the current domain.
  633.  
  634.       @    A free standing @ in the name field  denotes  the
  635.            current origin.
  636.  
  637.       ....   Two free standing dots represent the null  domain
  638.            name of the root when used in the name field.
  639.  
  640.       \X   Where X is any character other than a  digit  (0-
  641.            9),  quotes  that  character  so that its special
  642.            meaning does not apply.  For example, ``\.''  can
  643.            be used to place a dot character in a label.
  644.  
  645.       \DDD Where each D is a digit, is the octet correspond-
  646.            ing  to  the decimal number described by DDD. The
  647.            resulting octet is assumed to be text and is  not
  648.            checked for special meaning.
  649.  
  650.       ( )  Parentheses are used to group data that crosses a
  651.            line. In effect, line terminations are not recog-
  652.            nized within parentheses.
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--1111
  666.  
  667.  
  668.       ;    Semicolon starts a comment; the remainder of  the
  669.            line is ignored.
  670.  
  671.       *    An asterisk signifies wildcarding.
  672.  
  673.            Most resource records will have the current  ori-
  674.       gin  appended to names if they are not terminated by a
  675.       ``..''. This is useful for appending the current domain
  676.       name to the data, such as machine names, but may cause
  677.       problems where you do not want this to happen.  A good
  678.       rule  of  thumb  is that, if the name is not in of the
  679.       domain for which you are creating the data  file,  end
  680.       the name with a ``..''.
  681.  
  682.       55..44..11..  $$IINNCCLLUUDDEE
  683.  
  684.               An include line begins with $INCLUDE, starting
  685.          in  column 1, and is followed by a file name.  This
  686.          feature is particularly useful for separating  dif-
  687.          ferent types of data into multiple files.  An exam-
  688.          ple would be:
  689.  
  690.              $INCLUDE /usr/named/data/mailboxs
  691.  
  692.          The line would be interpreted as a request to  load
  693.          the  file  /_u_s_r/_n_a_m_e_d/_d_a_t_a/_m_a_i_l_b_o_x_e_s.  The $INCLUDE
  694.          command does not cause data to  be  loaded  into  a
  695.          different  zone  or  tree.  This is simply a way to
  696.          allow data for a given  zone  to  be  organized  in
  697.          separate files.  For example, mailbox data might be
  698.          kept separately from host data using  this  mechan-
  699.          ism.
  700.  
  701.       55..44..22..  $$OORRIIGGIINN
  702.  
  703.               The origin is a way of changing the origin  in
  704.          a  data  file.  The line starts in column 1, and is
  705.          followed by a domain origin.  This  is  useful  for
  706.          putting more then one domain in a data file.
  707.  
  708.       55..44..33..  SSOOAA -- SSttaarrtt OOff AAuutthhoorriittyy
  709.  
  710.  
  711.          _n_a_m_e   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _S_O_A       _O_r_i_g_i_n                 _P_e_r_s_o_n _i_n _c_h_a_r_g_e
  712.          @              IN           SOA       ucbvax..Berkeley..Edu..   kjd..ucbvax..Berkeley..Edu.. (
  713.                                      1.1       ; Serial
  714.                                      10800     ; Refresh
  715.                                      1800      ; Retry
  716.                                      3600000   ; Expire
  717.                                      86400 )   ; Minimum
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. SSMMMM::1111--1122              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  732.  
  733.  
  734.          The _S_t_a_r_t _o_f _A_u_t_h_o_r_i_t_y, _S_O_A, record designates  the
  735.          start of a zone.  The name is the name of the zone.
  736.          Origin is the name of the host on which  this  data
  737.          file  resides.   Person  in  charge  is the mailing
  738.          address for the person  responsible  for  the  name
  739.          server.  The serial number is the version number of
  740.          this data file, this number should  be  incremented
  741.          whenever  a  change  is made to the data.  The name
  742.          server cannot handle numbers over  9999  after  the
  743.          decimal point.  The refresh indicates how often, in
  744.          seconds, a secondary name servers is to check  with
  745.          the  primary  name  server  to  see if an update is
  746.          needed.  The retry indicates how long, in  seconds,
  747.          a  secondary  server is to retry after a failure to
  748.          check for a refresh.  Expire is the upper limit, in
  749.          seconds, that a secondary name server is to use the
  750.          data before  it  expires  for  lack  of  getting  a
  751.          refresh.   Minimum is the default number of seconds
  752.          to be used for the time to live field  on  resource
  753.          records.   There  should only be one _S_O_A record per
  754.          zone.
  755.  
  756.       55..44..44..  NNSS -- NNaammee SSeerrvveerr
  757.  
  758.          {_n_a_m_e}   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _N_S   _N_a_m_e _s_e_r_v_e_r_s _n_a_m_e
  759.                           IN           NS   ucbarpa..Berkeley..Edu..
  760.  
  761.          The _N_a_m_e _S_e_r_v_e_r record, _N_S,  lists  a  name  server
  762.          responsible  for  a  given  domain.  The first name
  763.          field lists the domain  that  is  serviced  by  the
  764.          listed  name server.  There should be one _N_S record
  765.          for each Primary Master server for the domain.
  766.  
  767.       55..44..55..  AA -- AAddddrreessss
  768.  
  769.          {_n_a_m_e}    {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _A   _a_d_d_r_e_s_s
  770.          ucbarpa           IN           A   128..32..0..4
  771.                            IN           A   10..0..0..78
  772.  
  773.          The _A_d_d_r_e_s_s record, _A,  lists  the  address  for  a
  774.          given  machine.  The name field is the machine name
  775.          and the address  is  the  network  address.   There
  776.          should  be  one  _A  record  for each address of the
  777.          machine.
  778.  
  779.       55..44..66..  HHIINNFFOO -- HHoosstt IInnffoorrmmaattiioonn
  780.  
  781.          {_n_a_m_e}   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _H_I_N_F_O   _H_a_r_d_w_a_r_e     _O_S
  782.                           IN           HINFO   VAX-11/780   UNIX
  783.  
  784.          _H_o_s_t _I_n_f_o_r_m_a_t_i_o_n resource  record,  _H_I_N_F_O,  is  for
  785.          host  specific  data.   This lists the hardware and
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--1133
  798.  
  799.  
  800.          operating system that are  running  at  the  listed
  801.          host.   It should be noted that only a single space
  802.          separates the hardware info and the operating  sys-
  803.          tem  info.  If  you  want to include a space in the
  804.          machine name you must quote the name.  There should
  805.          be one _H_I_N_F_O record for each host.
  806.  
  807.  
  808.       55..44..77..  WWKKSS -- WWeellll KKnnoowwnn SSeerrvviicceess
  809.  
  810.          {_n_a_m_e}   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _W_K_S   _a_d_d_r_e_s_s       _p_r_o_t_o_c_o_l   _l_i_s_t _o_f _s_e_r_v_i_c_e_s
  811.                           IN           WKS   128..32..0..10   UDP        who route timed domain
  812.                           IN           WKS   128..32..0..10   TCP        ( echo telnet
  813.                                                                       discard sunrpc sftp
  814.                                                                       uucp-path systat daytime
  815.                                                                       netstat qotd nntp
  816.                                                                       link chargen ftp
  817.                                                                       auth time whois mtp
  818.                                                                       pop rje finger smtp
  819.                                                                       supdup hostnames
  820.                                                                       domain
  821.                                                                       nameserver )
  822.  
  823.          The _W_e_l_l _K_n_o_w_n _S_e_r_v_i_c_e_s record, _W_K_S, describes  the
  824.          well  known services supported by a particular pro-
  825.          tocol at a specified address.  The list of services
  826.          and  port  numbers  come  from the list of services
  827.          specified in /_e_t_c/_s_e_r_v_i_c_e_s.  There should  be  only
  828.          one _W_K_S record per protocol per address.
  829.  
  830.  
  831.       55..44..88..  CCNNAAMMEE -- CCaannoonniiccaall NNaammee
  832.  
  833.          _a_l_i_a_s_e_s    {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _C_N_A_M_E   _C_a_n_o_n_i_c_a_l _n_a_m_e
  834.          ucbmonet           IN           CNAME   monet
  835.  
  836.          _C_a_n_o_n_i_c_a_l _N_a_m_e resource record, _C_N_A_M_E, specifies an
  837.          alias for a canonical name.  An alias should be the
  838.          only record associated with  the  alias  name;  all
  839.          other  resource  records  should be associated with
  840.          the canonical name and not  with  the  alias.   Any
  841.          resource  records  that  include  a  domain name as
  842.          their value (e.g. NS or MX) should list the canoni-
  843.          cal name, not the alias.
  844.  
  845.       55..44..99..  PPTTRR -- DDoommaaiinn NNaammee PPooiinntteerr
  846.  
  847.          _n_a_m_e   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _P_T_R   _r_e_a_l _n_a_m_e
  848.          7.0            IN           PTR   monet..Berkeley..Edu..
  849.  
  850.          A _D_o_m_a_i_n _N_a_m_e _P_o_i_n_t_e_r record, _P_T_R,  allows  special
  851.          names  to  point  to  some  other  location  in the
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. SSMMMM::1111--1144              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  864.  
  865.  
  866.          domain. The above example of a _P_T_R record  is  used
  867.          in  setting up reverse pointers for the special _I_N-
  868.          _A_D_D_R.._A_R_P_A domain. This line  is  from  the  example
  869.          _h_o_s_t_s._r_e_v  file.  _P_T_R names should be unique to the
  870.          zone.
  871.  
  872.       55..44..1100..  MMBB -- MMaaiillbbooxx
  873.  
  874.          _n_a_m_e     {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _M_B   _M_a_c_h_i_n_e
  875.          miriam           IN           MB   vineyd..DEC..COM..
  876.  
  877.          _M_B is the _M_a_i_l_b_o_x record.  This lists  the  machine
  878.          where a user wants to receive mail.  The name field
  879.          is the users login; the machine field  denotes  the
  880.          machine to which mail is to be delivered.  Mail Box
  881.          names should be unique to the zone.  (These records
  882.          are currently for experimental use only.)
  883.  
  884.       55..44..1111..  MMRR -- MMaaiill RReennaammee NNaammee
  885.  
  886.          _n_a_m_e           {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _M_R   _c_o_r_r_e_s_p_o_n_d_i_n_g _M_B
  887.          Postmistress           IN           MR   miriam
  888.  
  889.          _M_a_i_n _R_e_n_a_m_e, _M_R, can be used to list aliases for  a
  890.          user.   The name field lists the alias for the name
  891.          listed in the fourth field,  which  should  have  a
  892.          corresponding   _M_B   record.   (These  records  are
  893.          currently for experimental use only.)
  894.  
  895.       55..44..1122..  MMIINNFFOO -- MMaaiillbbooxx IInnffoorrmmaattiioonn
  896.  
  897.          _n_a_m_e   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _M_I_N_F_O   _r_e_q_u_e_s_t_s       _m_a_i_n_t_a_i_n_e_r
  898.          BIND           IN           MINFO   BIND-REQUEST   kjd..Berkeley..Edu..
  899.  
  900.          _M_a_i_l _I_n_f_o_r_m_a_t_i_o_n  record,  _M_I_N_F_O,  creates  a  mail
  901.          group  for a mailing list.  This resource record is
  902.          usually associated with a mail  group  _M_a_i_l  _G_r_o_u_p,
  903.          but  may  be used with a _M_a_i_l _B_o_x record.  The _n_a_m_e
  904.          specifies the name of the  mailbox.   The  _r_e_q_u_e_s_t_s
  905.          field is where mail such as requests to be added to
  906.          a mail group should be sent.  The _m_a_i_n_t_a_i_n_e_r  is  a
  907.          mailbox  that  should receive error messages.  This
  908.          is particularly appropriate for mailing lists  when
  909.          errors  in  members  names  should be reported to a
  910.          person other than the sender.  (These  records  are
  911.          currently for experimental use only.)
  912.  
  913.       55..44..1133..  MMGG -- MMaaiill GGrroouupp MMeemmbbeerr
  914.  
  915.          {_m_a_i_l _g_r_o_u_p _n_a_m_e}   {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _M_G   _m_e_m_b_e_r _n_a_m_e
  916.                                      IN           MG   Bloom
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--1155
  930.  
  931.  
  932.          _M_a_i_l _G_r_o_u_p, _M_G  lists  members  of  a  mail  group.
  933.          (These  records  are currently for experimental use
  934.          only.)
  935.  
  936.          An example for setting up a mailing list is as fol-
  937.          lows:
  938.  
  939.          Bind      IN   MINFO   Bind-Request            kjd..Berkeley..Edu..
  940.                    IN   MG      Ralph..Berkeley..Edu..
  941.                    IN   MG      Zhou..Berkeley..Edu..
  942.                    IN   MG      Painter..Berkeley..Edu..
  943.                    IN   MG      Riggle..Berkeley..Edu..
  944.                    IN   MG      Terry..pa..Xerox..Com..
  945.  
  946.  
  947.       55..44..1144..  MMXX -- MMaaiill EExxcchhaannggeerr
  948.  
  949.          _n_a_m_e             {_t_t_l}   _a_d_d_r-_c_l_a_s_s   _M_X   _p_r_e_f_e_r_e_n_c_e _v_a_l_u_e   _m_a_i_l_e_r _e_x_c_h_a_n_g_e_r
  950.          Munnari..OZ..AU..           IN           MX   0                  Seismo..CSS..GOV..
  951.          *..IL..                    IN           MX   0                  RELAY..CS..NET..
  952.  
  953.          _M_a_i_n _E_x_c_h_a_n_g_e_r records, _M_X, are used to  specify  a
  954.          machine that knows how to deliver mail to a machine
  955.          that is not directly connected to the network.   In
  956.          the first example, above, Seismo..CSS..GOV.. is a mail
  957.          gateway  that  knows  how  to   deliver   mail   to
  958.          Munnari..OZ..AU..  but  other  machines on the network
  959.          can not deliver mail directly to Munnari. These two
  960.          machines  may  have  a  private connection or use a
  961.          different transport medium.  The  preference  value
  962.          is the order that a mailer should follow when there
  963.          is more then one way to deliver mail  to  a  single
  964.          machine.  See RFC974 for more detailed information.
  965.  
  966.               Wildcard names containing the character  ``*''
  967.          may  be  used  for  mail  routing  with _M_X records.
  968.          There are likely to be servers on the network  that
  969.          simply  state  that  any  mail to a domain is to be
  970.          routed through a relay. Second example, above,  all
  971.          mail  to  hosts  in the domain IL is routed through
  972.          RELAY.CS.NET.  This is done by creating a  wildcard
  973.          resource  record,  which states that *.IL has an _M_X
  974.          of RELAY.CS.NET.
  975.  
  976.    55..55..  SSaammppllee FFiilleess
  977.  
  978.            The following section contains sample  files  for
  979.       the  name  server.  This covers example boot files for
  980.       the different types of servers and example domain data
  981.       base files.
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995. SSMMMM::1111--1166              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  996.  
  997.  
  998.       55..55..11..  BBoooott FFiillee
  999.  
  1000.          55..55..11..11..  PPrriimmaarryy MMaasstteerr SSeerrvveerr
  1001.  
  1002.  
  1003.             ;
  1004.             ; Boot file for Primary Master Name Server
  1005.             ;
  1006.  
  1007.  
  1008.             ; type      domain                 source file or host
  1009.             ;
  1010.             directory   /usr/local/domain
  1011.             primary     Berkeley..Edu           ucbhosts
  1012.             primary     32..128..in-addr..arpa    ucbhosts..rev
  1013.             primary     0..0..127..in-addr..arpa   named..local
  1014.             cache       ..                      root..cache
  1015.  
  1016.  
  1017.  
  1018.          55..55..11..22..  SSeeccoonnddaarryy MMaasstteerr SSeerrvveerr
  1019.  
  1020.  
  1021.             ;
  1022.             ; Boot file for Primary Master Name Server
  1023.             ;
  1024.  
  1025.  
  1026.             ; type      domain                 source file or host
  1027.             ;
  1028.             directory   /usr/local/domain
  1029.             secondary   Berkeley..Edu           128..32..0..4 128..32..0..10 ucbhosts.bak
  1030.             secondary   32..128..in-addr..arpa    128..32..0..4 128..32..0..10 ucbhosts.rev.bak
  1031.             primary     0..0..127..in-addr..arpa   named..local
  1032.             cache       ..                      root..cache
  1033.  
  1034.  
  1035.  
  1036.          55..55..11..33..  CCaacchhiinngg OOnnllyy SSeerrvveerr
  1037.  
  1038.  
  1039.             ;
  1040.             ; Boot file for Caching Only Name Server
  1041.             ;
  1042.  
  1043.  
  1044.             ; type      domain                 source file or host
  1045.             ;
  1046.             directory   /usr/local/domain
  1047.             cache       ..                      root..cache
  1048.             primary     0..0..127..in-addr..arpa   /etc/named..local
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--1177
  1062.  
  1063.  
  1064.       55..55..22..  RReemmoottee SSeerrvveerr
  1065.  
  1066.          55..55..22..11..  //eettcc//rreessoollvv..ccoonnff
  1067.  
  1068.  
  1069.             domain Berkeley..Edu
  1070.             nameserver 128..32..0..4
  1071.             nameserver 128..32..0..10
  1072.  
  1073.  
  1074.  
  1075.       55..55..33..  rroooott..ccaacchhee
  1076.  
  1077.  
  1078.          ;
  1079.          ;
  1080.          ; Initial cache data for root domain servers.
  1081.          ;
  1082.  
  1083.  
  1084.          ..                     99999999   IN   NS   NIC..DDN..MIL..
  1085.                                99999999   IN   NS   NS..NASA..GOV..
  1086.                                99999999   IN   NS   TERP..UMD..EDU..
  1087.                                99999999   IN   NS   A..ISI..EDU..
  1088.                                99999999   IN   NS   AOS..BRL..MIL..
  1089.                                99999999   IN   NS   GUNTER-ADAM..AF..MIL..
  1090.                                99999999   IN   NS   C..NYSER..NET..
  1091.  
  1092.          ;  Prep the cache (hotwire the addresses)..
  1093.          NIC..DDN..MIL..          99999999   IN   A    10..0..0..51
  1094.          NIC..DDN..MIL..          99999999   IN   A    26..0..0..73
  1095.          NS..NASA..GOV..          99999999   IN   A    128..102..16..10
  1096.          A..ISI..EDU..            99999999   IN   A    26..3..0..103
  1097.          AOS..BRL..MIL..          99999999   IN   A    128..20..1..2
  1098.          AOS..BRL..MIL..          99999999   IN   A    192..5..25..82
  1099.          GUNTER-ADAM..AF..MIL..   99999999   IN   A    26..1..0..13
  1100.          C..NYSER..NET..          99999999   IN   A    192..33..4..12
  1101.          TERP..UMD..EDU..         99999999   IN   A    128..8..10..90
  1102.  
  1103.  
  1104.  
  1105.       55..55..44..  nnaammeedd..llooccaall
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127. SSMMMM::1111--1188              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  1128.  
  1129.  
  1130.  
  1131.  
  1132.          @   IN   SOA   ucbvax..Berkeley..Edu. kjd..ucbvax..Berkeley..Edu.. (
  1133.                         1       ; Serial
  1134.                         10800
  1135.                         1800
  1136.                         3600000
  1137.                         86400 )
  1138.              IN   NS    ucbvax..Berkeley..Edu..
  1139.          1   IN   PTR   localhost..
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--1199
  1194.  
  1195.  
  1196.       55..55..55..  HHoossttss
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259. SSMMMM::1111--2200              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  1260.  
  1261.  
  1262.          ;
  1263.          ;    @(#)ucb-hosts    1.2    (berkeley)    88/02/05
  1264.          ;
  1265.  
  1266.          @              IN   SOA     ucbvax..Berkeley..Edu.. kjd..monet..Berkeley..Edu.. (
  1267.                                      1..2       ; Serial
  1268.                                      10800     ; Refresh
  1269.                                      1800      ; Retry
  1270.                                      3600000   ; Expire
  1271.                                      86400 )   ; Minimum
  1272.                         IN   NS      ucbarpa..Berkeley..Edu..
  1273.                         IN   NS      ucbvax..Berkeley..Edu..
  1274.          localhost      IN   A       127..1
  1275.          ucbarpa        IN   A       128..32..4
  1276.                         IN   A       10..0..0..78
  1277.                         IN   HINFO   VAX-11/780 UNIX
  1278.          arpa           IN   CNAME   ucbarpa
  1279.          ernie          IN   A       128..32..6
  1280.                         IN   HINFO   VAX-11/780 UNIX
  1281.          ucbernie       IN   CNAME   ernie
  1282.          monet          IN   A       128..32..7
  1283.                         IN   A       128..32..130..6
  1284.                         IN   HINFO   VAX-11/750 UNIX
  1285.          ucbmonet       IN   CNAME   monet
  1286.          ucbvax         IN   A       10..2..0..78
  1287.                         IN   A       128..32..10
  1288.                         IN   HINFO   VAX-11/750 UNIX
  1289.                         IN   WKS     128..32..0..10 UDP syslog route timed domain
  1290.                         IN   WKS     128..32..0..10 TCP ( echo telnet
  1291.                                      discard sunrpc sftp
  1292.                                      uucp-path systat daytime
  1293.                                      netstat qotd nntp
  1294.                                      link chargen ftp
  1295.                                      auth time whois mtp
  1296.                                      pop rje finger smtp
  1297.                                      supdup hostnames
  1298.                                      domain
  1299.                                      nameserver )
  1300.          vax            IN   CNAME   ucbvax
  1301.          toybox         IN   A       128..32..131..119
  1302.                         IN   HINFO   Pro350 RT11
  1303.          toybox         IN   MX      0  monet.Berkeley.Edu
  1304.          miriam         IN   MB      vineyd.DEC.COM.
  1305.          postmistress   IN   MR      Miriam
  1306.          Bind           IN   MINFO   Bind-Request kjd..Berkeley..Edu..
  1307.                         IN   MG      Ralph..Berkeley..Edu..
  1308.                         IN   MG      Zhou..Berkeley..Edu..
  1309.                         IN   MG      Painter..Berkeley..Edu..
  1310.                         IN   MG      Riggle..Berkeley..Edu..
  1311.                         IN   MG      Terry..pa..Xerox..Com..
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--2211
  1326.  
  1327.  
  1328.       55..55..66..  hhoosstt..rreevv
  1329.  
  1330.  
  1331.          ;
  1332.          ;    @(#)ucb-hosts.rev    1.1    (Berkeley)    86/02/05
  1333.          ;
  1334.  
  1335.          @       IN   SOA   ucbvax..Berkeley..Edu.. kjd..monet..Berkeley..Edu.. (
  1336.                             1..1     ; Serial
  1337.                             10800     ; Refresh
  1338.                             1800      ; Retry
  1339.                             3600000   ; Expire
  1340.                             86400 )   ; Minimum
  1341.                  IN   NS    ucbarpa..Berkeley..Edu..
  1342.                  IN   NS    ucbvax..Berkeley..Edu..
  1343.          0..0     IN   PTR   Berkeley-net..Berkeley..EDU..
  1344.                  IN   A     255..255..255..0
  1345.          0..130   IN   PTR   csdiv-net..Berkeley..EDU..
  1346.          4..0     IN   PTR   ucbarpa..Berkeley..Edu..
  1347.          6..0     IN   PTR   ernie..Berkeley..Edu..
  1348.          7..0     IN   PTR   monet..Berkeley..Edu..
  1349.          10..0    IN   PTR   ucbvax..Berkeley..Edu..
  1350.          6..130   IN   PTR   monet..Berkeley..Edu..
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358. 66..  DDoommaaiinn MMaannaaggeemmeenntt
  1359.  
  1360.         This section contains information for starting, con-
  1361.    trolling and debugging _n_a_m_e_d.
  1362.  
  1363.    66..11..  //eettcc//rrcc..llooccaall
  1364.  
  1365.            The hostname should be set  to  the  full  domain
  1366.       style  name  in  /_e_t_c/_r_c._l_o_c_a_l using _h_o_s_t_n_a_m_e(_1).  The
  1367.       following entry should be added  to  /_e_t_c/_r_c._l_o_c_a_l  to
  1368.       start up _n_a_m_e_d at system boot time:
  1369.  
  1370.           _i_f [ -_f /_e_t_c/_n_a_m_e_d ]; _t_h_e_n
  1371.                   /_e_t_c/_n_a_m_e_d [options] & _e_c_h_o -_n ' _n_a_m_e_d' >/_d_e_v/_c_o_n_s_o_l_e
  1372.           _f_i
  1373.  
  1374.       This usually directly follows  the  lines  that  start
  1375.       _s_y_s_l_o_g_d.   DDoo  NNoott  attempt  to  run _n_a_m_e_d from _i_n_e_t_d.
  1376.       This will continuously restart  the  name  server  and
  1377.       defeat the purpose of having a cache.
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391. SSMMMM::1111--2222              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  1392.  
  1393.  
  1394.    66..22..  //eettcc//nnaammeedd..ppiidd
  1395.  
  1396.            When _n_a_m_e_d is successfully started up  it  writes
  1397.       its  process id into the file /_e_t_c/_n_a_m_e_d._p_i_d.  This is
  1398.       useful to programs that want to send signals to _n_a_m_e_d.
  1399.       The  name of this file may be changed by defining _P_I_D_-
  1400.       _F_I_L_E to the new name when compiling _n_a_m_e_d.
  1401.  
  1402.    66..33..  //eettcc//hhoossttss
  1403.  
  1404.            The _g_e_t_h_o_s_t_b_y_n_a_m_e() library call  can  detect  if
  1405.       _n_a_m_e_d  is  running.  If it is determined that _n_a_m_e_d is
  1406.       not running it will look in /_e_t_c/_h_o_s_t_s to  resolve  an
  1407.       address. This option was added to allow _i_f_c_o_n_f_g(_8_C) to
  1408.       configure the machines local interfaces and to  enable
  1409.       a  system manager to access the network while the sys-
  1410.       tem is in single user mode.  It is  advisable  to  put
  1411.       the local machines interface addresses and a couple of
  1412.       machine names and address in /_e_t_c/_h_o_s_t_s so the  system
  1413.       manager  can  rcp  files from another machine when the
  1414.       system  is  in  single  user  mode.   The  format   of
  1415.       /_e_t_c/_h_o_s_t  has  not  changed.  See  _h_o_s_t_s(_5)  for more
  1416.       information.  Since the process of reading  /_e_t_c/_h_o_s_t_s
  1417.       is slow, it is not advised to use this option when the
  1418.       system is in multi user mode.
  1419.  
  1420.  
  1421.    66..44..  SSiiggnnaallss
  1422.  
  1423.            There are several signals that can be sent to the
  1424.       _n_a_m_e_d  process  to have it do tasks without restarting
  1425.       the process.
  1426.  
  1427.       66..44..11..  RReellooaadd
  1428.  
  1429.               SIGHUP - Causes _n_a_m_e_d to read  _n_a_m_e_d._b_o_o_t  and
  1430.          reload the database.  All previously cached data is
  1431.          lost.  This is useful when you have made  a  change
  1432.          to  a data file and you want _n_a_m_e_d's internal data-
  1433.          base to reflect the change.
  1434.  
  1435.       66..44..22..  DDeebbuuggggiinngg
  1436.  
  1437.               When _n_a_m_e_d is running incorrectly, look  first
  1438.          in  /_u_s_r/_a_d_m/_m_e_s_s_a_g_e_s  and  check  for any messages
  1439.          logged by _s_y_s_l_o_g.  Next send it  a  signal  to  see
  1440.          what is happening.
  1441.  
  1442.               SIGINT - Dumps the current data base and cache
  1443.          to  /_u_s_r/_t_m_p/_n_a_m_e_d__d_u_m_p._d_b  This should give you an
  1444.          indication to whether  the  data  base  was  loaded
  1445.          correctly.   The  name  of  the  dump  file  may be
  1446.          changed by defining _D_U_M_P_F_I_L_E to the new  name  when
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--2233
  1458.  
  1459.  
  1460.          compiling _n_a_m_e_d.
  1461.  
  1462.          _N_o_t_e: the following  two  signals  only  work  when
  1463.          _n_a_m_e_d is built with _D_E_B_U_G defined.
  1464.  
  1465.               SIGUSR1 - Turns on debugging.  Each  following
  1466.          USR1  increments  the debug level.  The output goes
  1467.          to /_u_s_r/_t_m_p/_n_a_m_e_d._r_u_n The name of this  debug  file
  1468.          may  be  changed  by  defining _D_E_B_U_G_F_I_L_E to the new
  1469.          name before compiling _n_a_m_e_d.
  1470.  
  1471.               SIGUSR2 - Turns off debugging completely.
  1472.  
  1473.          For more detailed debugging, define DEBUG when com-
  1474.          piling the resolver routines into /_l_i_b/_l_i_b_c._a.
  1475.  
  1476.  
  1477.  
  1478.                       AACCKKNNOOWWLLEEDDGGEEMMEENNTTSS
  1479.  
  1480.      Many thanks to the users at U.C. Berkeley  for  falling
  1481. into  many  of the holes involved with integrating BIND into
  1482. the system so that others would be  spared  the  trauma.   I
  1483. would  also  like  to  extend gratitude to Jim McGinness and
  1484. Digital Equipment Corporation for  permitting  me  to  spend
  1485. most of my time on this project.
  1486.  
  1487.      Ralph Campbell, Doug Kingston, Craig  Partridge,  Smoot
  1488. Carl-Mitchell,  Mike  Muuss  and  everyone else on the DARPA
  1489. Internet who has contributed to the development of BIND.  To
  1490. the  members  of  the  original BIND project, Douglas Terry,
  1491. Mark Painter, David Riggle and Songnian Zhou.
  1492.  
  1493.      Anne Hughes, Jim Bloom and Kirk McKusick and  the  many
  1494. others  who  have  reviewed  this  paper giving considerable
  1495. advice.
  1496.  
  1497.      This  work  was  sponsored  by  the  Defense   Advanced
  1498. Research  Projects  Agency  (DoD), Arpa Order No. 4871 moni-
  1499. tored by the Naval Electronics Systems  Command  under  con-
  1500. tract  No. N00039-84-C-0089.  The views and conclusions con-
  1501. tained in this document are those of the authors and  should
  1502. not be interpreted as representing official policies, either
  1503. expressed or  implied,  of  the  Defense  Research  Projects
  1504. Agency,  of  the US Government, or of Digital Equipment Cor-
  1505. poration.
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523. SSMMMM::1111--2244              NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD
  1524.  
  1525.  
  1526.                          RREEFFEERREENNCCEESS
  1527.  
  1528.  
  1529. [Birrell] Birrell, A. D., Levin, R.,  Needham,  R.  M.,  and
  1530.           Schroeder,  M.D.,  "Grapevine: An Exercise in Dis-
  1531.           tributed Computing." In _C_o_m_m. _A._C._M. _2_5, 4:260-274
  1532.           April 1982.
  1533.  
  1534. [RFC819]  Su, Z.  Postel, J., "The Domain Naming  Convention
  1535.           for  Internet User Applications." _I_n_t_e_r_n_e_t _R_e_q_u_e_s_t
  1536.           _F_o_r _C_o_m_m_e_n_t _8_1_9 Network  Information  Center,  SRI
  1537.           International,  Menlo  Park,  California.   August
  1538.           1982.
  1539.  
  1540. [RFC974]  Partridge, C., "Mail Routing and The  Domain  Sys-
  1541.           tem."  _I_n_t_e_r_n_e_t  _R_e_q_u_e_s_t  _F_o_r  _C_o_m_m_e_n_t _9_7_4 Network
  1542.           Information Center, SRI International, Menlo Park,
  1543.           California.  February 1986.
  1544.  
  1545. [RFC1032] Stahl, M., "Domain Administrators Guide"  _I_n_t_e_r_n_e_t
  1546.           _R_e_q_u_e_s_t   _F_o_r  _C_o_m_m_e_n_t  _1_0_3_2  Network  Information
  1547.           Center, SRI International, Menlo Park, California.
  1548.           November 1987.
  1549.  
  1550. [RFC1033] Lottor, M., "Domain Administrators Guide" _I_n_t_e_r_n_e_t
  1551.           _R_e_q_u_e_s_t   _F_o_r  _C_o_m_m_e_n_t  _1_0_3_3  Network  Information
  1552.           Center, SRI International, Menlo Park, California.
  1553.           November 1987.
  1554.  
  1555. [RFC1034] Mockapetris,  P.,  "Domain  Names  -  Concept  and
  1556.           Facilities."  _I_n_t_e_r_n_e_t  _R_e_q_u_e_s_t  _F_o_r  _C_o_m_m_e_n_t _1_0_3_4
  1557.           Network  Information  Center,  SRI  International,
  1558.           Menlo Park, California.  November 1987.
  1559.  
  1560. [RFC1035] Mockapetris, P., "Domain  Names  -  Implementation
  1561.           and  Specification."  _I_n_t_e_r_n_e_t _R_e_q_u_e_s_t _F_o_r _C_o_m_m_e_n_t
  1562.           _1_0_3_5  Network  Information  Center,  SRI  Interna-
  1563.           tional, Menlo Park, California.  November 1987.
  1564.  
  1565. [RFC10101]
  1566.           Mockapetris, P., "DNS Encoding  of  Network  Names
  1567.           and  Other  Types."  _I_n_t_e_r_n_e_t  _R_e_q_u_e_s_t _F_o_r _C_o_m_m_e_n_t
  1568.           _1_1_0_1  Network  Information  Center,  SRI  Interna-
  1569.           tional, Menlo Park, California.  April 1989.
  1570.  
  1571. [Terry]   Terry, D. B., Painter,  M.,  Riggle,  D.  W.,  and
  1572.           Zhou,   S.,  _T_h_e  _B_e_r_k_e_l_e_y  _I_n_t_e_r_n_e_t  _N_a_m_e  _D_o_m_a_i_n
  1573.           _S_e_r_v_e_r.   Proceedings  USENIX  Summer  Conference,
  1574.           Salt Lake City, Utah.  June 1984, pages 23-31.
  1575.  
  1576. [Zhou]    Zhou, S., _T_h_e _D_e_s_i_g_n  _a_n_d  _I_m_p_l_e_m_e_n_t_a_t_i_o_n  _o_f  _t_h_e
  1577.           _B_e_r_k_e_l_e_y  _I_n_t_e_r_n_e_t  _N_a_m_e  _D_o_m_a_i_n  (_B_I_N_D)  _S_e_r_v_e_r_s.
  1578.           UCB/CSD   84/177.    University   of   California,
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589. NNaammee SSeerrvveerr OOppeerraattiioonnss GGuuiiddee ffoorr BBIINNDD              SSMMMM::1111--2255
  1590.  
  1591.  
  1592.           Berkeley, Computer Science Division.  May 1984.
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.