home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / share / os2 / utilidad / csd / basecsd2.exe / SAMPLES / NAMED / NAMED.DOC next >
Encoding:
Text File  |  1992-09-28  |  11.7 KB  |  241 lines

  1. Name server needs named.bt (boot file) in \\etc directory.
  2. There are different ways you can set up your name server.
  3. I am providing three different scenarios.
  4.  
  5. ============================================================================
  6. |                                                                     scenario 1                                                                              |
  7. ============================================================================
  8.                      Set up name server and test
  9. (1)Following  is the steps which is described  how to set up name server:
  10.  
  11. (a) The machine which is built as a Name server needs two files in the ..\\tcpip\\etc
  12.       directory. One is named.bt , the other is prim1.  The following is contents of the
  13.       these two files.
  14.  
  15.      (i)  In named.bt file, the domain name here is ralburg.ibm.com. The  etc
  16.            directory here is f:\\tcpip\\etc.
  17.  
  18.            named.bt contents:
  19.            domain  ralburg.ibm.com
  20.            primary  ralburg.ibm.com       f:\\tcpip \\etc\\prim1
  21.  
  22.  
  23.      (ii)  Prim1 contents are:
  24.           @  IN    SOA     host.domain-name.   user. host. domain-name. (
  25.                                               30  ; serial
  26.                                              10800   ; refresh
  27.                                              3600    ; retry
  28.                                              3600000 ; expire
  29.                                              86400 ) ; minimum
  30.          ;
  31.         @      IN        NS     host
  32.          host                       23525   in    a     IP-address( host)
  33.          ;
  34.          ; database records follow
  35.          user1                     9999999 in      a       IP-address(user1)
  36.          user2                     9999999 in      a       IP-address(user2)
  37.          user3                     9999999 in      a       IP-address(user3)
  38.          user4                     9999999 in      a       IP-address(user4)
  39.  
  40.         The following is an example of the Prim1 file:
  41.         For example,  the host is li, the user is nan, the domain-name is
  42.         ralburg.ibm.com,  Prim1 is showing below:
  43.  
  44.         @       IN      SOA     li.ralburg.ibm.com. nan.li.ralburg.ibm.com. (
  45.                                          30  ; serial
  46.                                          10800   ; refresh
  47.                                          3600    ; retry
  48.                                          3600000 ; expire
  49.                                          86400 ) ; minimum
  50.         ;
  51.        @      IN        NS     li
  52.        li                               23525   in    a    9.99.99.92
  53.        ;
  54.        ; database records follow
  55.        pat                              9999999 in      a       9.99.99.90
  56.        nan                    9999999 in      a       9.99.99.92
  57.        hamer                          9999999 in      a       9.99.99.90
  58.        rabi                                9999999 in      a       9.99.99.49
  59.  
  60.  
  61. (b) In name server host ( here is host li) , execute NAMED in the
  62.       ..\\tcpip\\samples\\named   directory.
  63.  
  64.  
  65.  
  66. (2)Test the name server
  67.  
  68. The following  must be down in a machine chosen from the list of
  69. machines in the database records in the Prim1 file. ( I use hamer here):
  70.  
  71. (a)  Change the resolv file in ..\\ tcpip\\etc directory.  In the resolv file, the
  72.        domain name is same as in named.bt,  IP address of nameserver is
  73.        same as the host IP address in Prim1.   In prim1 showing above,
  74.        the host is li, its IP address is 9.99.99.92, therefore, the IP address of
  75.        nameserver in resolv is also 9.99.99.92.
  76.  
  77.       Resolv file contents:
  78.                     domain ralburg.ibm.com
  79.                     nameserver 9.99.99.92
  80.  
  81. (b)  rename host file in the etc directory if it exist ,
  82.  
  83. (c)  type " ARP -f"  to remove the message from the ARP buffer.
  84.  
  85. (d)  type "ping pat", where pat is the one of users listed in database in
  86.        the Prim1 file.  Name server is work if ping is successful.
  87.  
  88.  
  89. ============================================================================
  90. |                                                                    scenario 2                                                                                |
  91. ============================================================================
  92. Here we point to another name server. That means we run two different name
  93. servers at same time. One is primary name server and the other is secondary
  94. name server.  The primary name server will be caching responses from the
  95. secondery name server. In this scenario we can run the name server on the
  96. same machine as our applications for speed.
  97.  
  98. (1)Following  is the steps which is described  how to set up name server .
  99.  
  100. (a) The machine which is built as a Primary  Name server needs two files in
  101.       the ..\\tcpip\\etc directory. One is named.bt , the other is prim1.  The following
  102.       is ontents of the these two files. (here I use nan as a primary name
  103.       server).
  104.  
  105.      (i)  In named.bt file, the domain name here is ralburg.ibm.com. The  etc
  106.           directory here is f:\\tcpip\\etc.
  107.  
  108.           named.bt contents:
  109.                           domain  ralburg.ibm.com
  110.                           primary  ralburg.ibm.com       f:\\tcpip \\etc\\prim1
  111.  
  112.  
  113.      (ii)  Prim1 contents are:
  114.            For example, the host is li, the user is nan, the domain-name is
  115.            ralburg.ibm.com,  Prim1 is showing below:
  116.  
  117.            @       IN      SOA     li.ralburg.ibm.com. nan.li.ralburg.ibm.com. (
  118.                                                         30  ; serial
  119.                                                         10800   ; refresh
  120.                                                         3600    ; retry
  121.                                                         3600000 ; expire
  122.                                                         86400 ) ; minimum
  123.            ;
  124.           @      IN        NS     li
  125.            li                               23525   in    a    9.99.99.92
  126.            ;
  127.            ; database records follow
  128.            pat                              9999999 in      a       9.99.99.90
  129.            nan                     9999999 in      a       9.99.99.92
  130.            hamer                           9999999 in      a       9.99.99.90
  131.            rabi                                 9999999 in      a       9.99.99.49
  132.  
  133. (b) In Primary name server host, execute the NAMED in the
  134.       ..\\tcpip\\samples\\named directory.
  135.  
  136. (c) Select a host from the list in the database records in the Prim1 file from the
  137.       primary name server.  The chosen host is the secondary name server. (here
  138.       I chose hamer as secondary name server).
  139.  
  140. (d) In secondary name server, create named.bt and named.ca files.  The
  141.       following are examples of named.bt and named.ca files.
  142.  
  143.      (i)  named.bt contents:
  144.               domain    ralburg.ibm.com
  145.               chche            .                                   ..\\tcpip\\etc\\named.ca
  146.  
  147.      (ii) named.ca contents:
  148.                .                                 9999999     in      ns        li.ralburg.ibm.com
  149.               ralburg.ibm.com    9999999     in       ns       li.ralburg.ibm.com
  150.               li.ralburg.ibm.com  9999999    in       a          9.99.99.92
  151.  
  152.       (iii) execute NAMED in the ..\\tcpip\\samples\\named directory.
  153.  
  154. (e) In a host  from the list in database records in the Prim1 file from the
  155.       primary name server, other than secondary name server. ( I chose lucy
  156.       here).  The following  steps must be down.
  157.  
  158.      (i)  Change the resolv file in ..\\tcpip\\etc directory.  In the resolv file, the
  159.           domain name is same as in named.bt,  IP address of nameserver is
  160.           same as the host IP address in Prim1 from secondary name server.
  161.           IP-address of secondary name server (here is hamer) is 9.99.99.90.
  162.           Therefore, the IP address of nameserver in resolv file is 9.99.99.90.
  163.  
  164.           Resolv file contents:
  165.                    domain ralburg.ibm.com
  166.                    nameserver 9.99.99.90
  167.  
  168.     (ii)  rename host file in the etc directory if it exist ,
  169.  
  170.     (iii) type " ARP -f"  to remove the message from the ARP buffer.
  171.  
  172.     (iv) type "ping pat", where pat is the one of users listed in database in
  173.           the Prim1 file.  Name server is work if ping is successful.
  174.  
  175.  
  176. ============================================================================
  177. |                                                                    scenario 3                                                                              |
  178. ============================================================================
  179. In this scenario, primary name server is responsible for domain
  180. ralburg.ibm.com,  and  uses secondary server name hamer.ralburg.ibm.com
  181. for queries on domain lucy.ralburg.ibm.com
  182.  
  183. (1)Following  is the steps which is described  how to set up name server .
  184.  
  185. (a)   The machine which is built as a Primary  Name server needs two files in
  186.         the ..\\tcpip\\etc directory. One is named.bt , the other is prim1.  The following
  187.         is ontents of the these two files. (here I use nan as a primary name server).
  188.  
  189.        (i)  In named.bt file, the domain name here is ralburg.ibm.com. The  etc
  190.             directory here is f:\\tcpip\\etc.
  191.  
  192.             named.bt contents:
  193.                            domain  ralburg.ibm.com
  194.                            primary  ralburg.ibm.com       f:\\tcpip \\etc\\prim1
  195.  
  196.      (ii)  named.ca contents:
  197.               .                            9999999      in                      ns             hamer.ralburg.ibm.com
  198.               lucy.ralburg.ibm.com            in                       ns           hamer.ralburg.ibm.com
  199.               hamer.ralburg.ibm.com      9999999       in     a          9.99.99.90
  200.  
  201.  
  202.  
  203.     (iii)  Prim1 contents are:
  204.            For example, the host is li, the user is nan, the domain-name is
  205.            ralburg.ibm.com,  Prim1 is showing below:
  206.  
  207.           @       IN      SOA     li.ralburg.ibm.com. nan.li.ralburg.ibm.com. (
  208.                                      30  ; serial
  209.                                     10800   ; refresh
  210.                                     3600    ; retry
  211.                                     3600000 ; expire
  212.                                     86400 ) ; minimum
  213.           ;
  214.          @      IN        NS     li
  215.           li                               23525   in    a    9.99.99.92
  216.           ;
  217.           ; database records follow
  218.          pat                              9999999 in      a       9.99.99.90
  219.          nan                     9999999 in      a       9.99.99.92
  220.          rabi                                 9999999 in      a       9.99.99.49
  221.  
  222. (b)  In Primary name server host, execute the NAMED in the
  223.       ..\\tcpip\\samples\\named directory.
  224.  
  225. (c) Select a host as secondary name server which is not listed in the database
  226.       records in Prim1 file from primary name server.  The chosen host is the
  227.       secondary name server. (here I chose hamer as secondary name server,
  228.       note that hamer is not list ed in prim1).
  229.  
  230. (d)  In secondary name server, create named.bt and named.ca files.  The
  231.        following are examples of named.bt and named1.ca files.
  232.  
  233.       (i)  named.bt contents:
  234.                          domain    ralburg.ibm.com
  235.                          chche            .                                   e:\\tcpip\\etc\\named.ca
  236.  
  237.      (ii)  named1.ca contents:
  238.                           .                        9999999     in      ns        li.ralburg.ibm.com
  239.                          ralburg.ibm.com    9999999     in       ns       li.ralburg.ibm.com
  240.                          li.ralburg.ibm.com  9999999    in       a          9.99.99.92
  241.