home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / admin / 5019 < prev    next >
Encoding:
Text File  |  1992-09-12  |  3.9 KB  |  89 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!dirac.physics.uq.oz.au!werner
  3. From: werner@physics.uq.oz.au (Michael Werner)
  4. Subject: Re: DNS/named: Caching vs. Forwarding Server?
  5. Message-ID: <BuIDor.9K0@bunyip.cc.uq.oz.au>
  6. Sender: news@bunyip.cc.uq.oz.au (USENET News System)
  7. Reply-To: werner@dirac.physics.uq.oz.au
  8. Organization: Department of Physics, University of Queensland
  9. References: <rhoward.716131894@matd> <18osn1INNfu0@uniwa.uwa.edu.au> <rhoward.716215294@matd>
  10. Date: Sun, 13 Sep 1992 08:46:03 GMT
  11. Lines: 76
  12.  
  13. In article <rhoward.716215294@matd>, rhoward@matd.gatech.edu (Robert L. Howard) writes:
  14. |> craig@ec.uwa.oz.au (Craig Richmond - division) writes:
  15. |> 
  16. |> >rhoward@matd.gatech.edu (Robert L. Howard) writes:
  17. |> 
  18. |> [questions about caching vs. forwarding name servers]
  19. |> 
  20. |> >>The problem is that I don't understand quite the subtle 
  21. |> >>difference between the two.  What I desire is that when
  22. |> >>the DS-1 link is down that I will at least have minimal
  23. |> >>DNS for those hosts local to me, which would probably
  24. |> >>be in the cache.  (Ideally, I'd also like some way to force
  25. |> >>some list of hosts into the cache right at boot time so if
  26. |> >>the DS-1 link goes down 3 minutes later, I will have more
  27. |> >>than 2 hosts in the cache.)
  28. |> 
  29. |> >How about setting yourself up as a primary name server, but put your entry
  30. |> >as the second name server in the resolv.conf file on all your machines.
  31. |> >This way it won't go around putting things in the cache left right and
  32. |> >centre.  Only if your normal name server fails a lookup.
  33. |> 
  34. |> But that still forces some large amount of lookups over the DS-1
  35. |> link.  I would think that I *want* to have stuff in a (more) local
  36. |> cache to save time.
  37. |> 
  38. |> >You could put the local machines into a cache file.  named can be set up
  39. |> >with a cache file of DNS information to be cached at startup.
  40. |> 
  41. |> Okay, here is what I think I know about a cache file.  The examples
  42. |> I have seen have a line in named.boot like:
  43. |> 
  44. |> cache    .    /etc/named.ca
  45. |> 
  46. |> which I understood to cause named to read in and cache the root
  47. |> servers (the example had named.ca with the names of the top level
  48. |> root servers in it).  Does this mean I can add another cache line
  49. |> like:
  50. |> 
  51. |> cache    whatever.gatech.edu    /etc/named.local.ca
  52. |> 
  53. |> and put my hosts that I want always cached in it?
  54.     I only set up my named.boot and root.cache files today so I
  55.     know little so far but it may be enough to help out.
  56.     You can have more than one cache file but I haven't tried it.
  57. |> 
  58. |> Still, what about the forwarding server issue?  Could I add cache
  59. |> lines like above an also add a forwarders' line to the boot file
  60. |> so that all (non-cached) requests would go directly to the campus
  61. |> name server?  Do I even want to bother with this?
  62.  
  63.     If you are only using cache entries in your named.boot file
  64.     then you can nominate nameservers within local.ca without
  65.     any need for forwarders. e.g
  66.  
  67.     .    IN    NS    nameserver.(full machine name plus .)
  68. nameserver.    IN    A    nameserver(full IP address) 
  69.                                        
  70.     From my ignorant standpoint, if you don't have any primary entries
  71.     then use of a forwarders entry as opposed to the above example
  72.     does not appear to be important.
  73. -- 
  74. Yours,
  75.  
  76. Mike
  77.  
  78. ----------------------------------------------------------------------------
  79. +                                                                          +
  80. +    *          *            Michael Werner                   +
  81. +     *         *                werner@dirac.physics.uq.oz.au      +
  82. +      *     *            Theoretical Quantum Optics,        + 
  83. +       -------                        Department of Physics,             +
  84. +      *       *                        University of Queensland.          +
  85. +     *        *            St. Lucia. 4072. Australia         +
  86. +    *           *                                                         +
  87. +                                                                          +   
  88. ---------------------------------------------------------------------------- 
  89.