home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23314 < prev    next >
Encoding:
Text File  |  1993-01-08  |  3.9 KB  |  135 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!utrcu1!infnews!denouden
  3. From: denouden@cs.utwente.nl (Jan den Ouden)
  4. Subject: nameserver example
  5. Message-ID: <1993Jan9.013802.21978@cs.utwente.nl>
  6. Keywords:  named nameserver bind
  7. Sender: denouden@cs.utwente.nl (Jan den Ouden)
  8. Nntp-Posting-Host: rijn
  9. Organization: University of Twente, Dept. of Computer Science
  10. Date: Sat, 9 Jan 1993 01:38:02 GMT
  11. Lines: 122
  12.  
  13. Hi
  14.  
  15. A while ago I posted a couple of messages concerning the setup
  16. of the named daemon config. files for a simple isolated 
  17. network with a local nameserver. Since nobody responded with
  18. a ready-to-go solution I decided to dig a little deeper into
  19. the subject. As a result I've now got a working nameserver.
  20. This message describes the changes I made. Here goes:
  21.  
  22. General.
  23. --------
  24. My isolated network consists of 2 machines, called whisky
  25. and jenever which are both located in the domain vdm. Whisky
  26. has IP address 128.0.0.1 and jenever has IP address 128.0.0.4.
  27. The nameserver runs on whisky, and jenever accesses whisky to
  28. resolve names.
  29.  
  30. Starting point is SLS 0.98pl5. This distribution contains
  31. install.net and hostcvt, which are supposed to make network
  32. installation easier, but they where of no help to me. Instead,
  33. I manually changed the files concerned.
  34.  
  35. Common changes to files for both machines.
  36. ------------------------------------------
  37.  
  38. /bin/hostname machine_name added to /etc/rc. Machine_name
  39. stands for either whisky or jenever. This command should
  40. be placed before the /bin/sh rc.local command. Further 
  41. hostname commands removed from /etc/rc and /etc/rc.local.
  42.  
  43. In /etc/inet/rc.net HOSTNAME=softland changed to 
  44. HOSTNAME=machine_name. Commented out the IPADDR= line 
  45. and inserted IPADDR=128.0.0.1 or IPADDR=128.0.0.4.
  46.  
  47. ROUTER set to 0.0.0.0 and NET set to 128.0.0.0. In the
  48. third $CONFIG line eth0 changed into eth_if (I use an
  49. Artisoft network card, this isn't necessary for standard
  50. WD network cards).
  51.  
  52. Changes for the nameserver (whisky in my case).
  53. -----------------------------------------------
  54.  
  55. For a nameserver the portmap, inetd and named daemons
  56. should be started. This is done in the /etc/inet/rc.net
  57. file.
  58.  
  59. named.boot contains 
  60. -----------------------------------------------------
  61. directory    /etc/inet
  62.  
  63. domain        vdm
  64. primary        vdm            named.hosts
  65. primary        0.0.128.in-addr.arpa    named.rev
  66. primary        0.0.127.in-addr.arpa    named.local
  67. -----------------------------------------------------
  68.  
  69. named.hosts contains
  70. -----------------------------------------------------
  71. @        IN   SOA  whisky.vdm.  root.whisky.vdm. (
  72.           1    ; Serial
  73.           3600 ; Refresh
  74.           300  ; Retry
  75.           3600000   ; Expire
  76.           14400 )   ; Minimum
  77.  
  78.     IN    NS    whisky.vdm.
  79.  
  80. localhost    IN    A    127.0.0.1
  81. whisky        IN    A    128.0.0.1
  82. jenever        IN    A    128.0.0.4
  83. -----------------------------------------------------
  84.  
  85. named.rev contains
  86. ------------------------------------------------------
  87. @    IN    SOA    whisky.vdm. root.whisky.vdm. (
  88.             1 ;
  89.             3600 ;
  90.             300 ;
  91.             3600000 ;
  92.             3600 ) 
  93.  
  94.     IN    NS    whisky.vdm.
  95.  
  96. 1    IN    PTR    whisky.vdm.
  97. 4    IN    PTR    jenever.vdm.
  98. ------------------------------------------------------
  99.  
  100. named.local contains
  101. ----------------------------------------------------------
  102. @    IN    SOA    whisky.vdm.    root.whisky.vdm. (
  103.             1;
  104.             36000;
  105.             3600;
  106.             3600000;
  107.             36000;
  108.             )
  109.  
  110.     IN    NS    whisky.vdm.
  111. 1    IN    PTR    localhost.
  112. ----------------------------------------------------------
  113.  
  114. Changes for a non-nameserver (jenever in my case).
  115. --------------------------------------------------
  116.  
  117. For a non-nameserver only the portmap and inetd daemons
  118. have to be started. The startup of the named daemon in
  119. /etc/inet/rc.net can thus be commented out.
  120.  
  121. A non-nameserver depends on a nameserver for name
  122. resolution. The non-nameserver is directed to a name-
  123. server by the /etc/inet/resolv.conf file (NOT the
  124. /etc/resolv.conf as mentioned in a lot of doc. files).
  125.  
  126. So, the /etc/inet/resolv.conf file on jenever contains:
  127. ---------------------
  128. domain vdm
  129. nameserver 128.0.0.1
  130. ---------------------
  131.  
  132. That's all. 
  133.  
  134. I'm currently trying to get NFS working.
  135.