home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / tcpip / domains / 614 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  4.2 KB

  1. Path: sparky!uunet!gatech!purdue!yuma!csn!news.den.mmc.com!pgl-devsvr.den.mmc.com!jzwiebel
  2. From: jzwiebel@pgl-devsvr.den.mmc.com (John Zwiebel (303)977-1480)
  3. Newsgroups: comp.protocols.tcp-ip.domains
  4. Subject: Re: Need Info about setting up Domain Name services (named) on network
  5. Message-ID: <1992Sep9.155447.18381@den.mmc.com>
  6. Date: 9 Sep 92 15:54:47 GMT
  7. References: <2739@news.cerf.net> <ellis.715893483@nova>
  8. Sender: news@den.mmc.com (News)
  9. Distribution: usa
  10. Organization: PAGE @ Martin-Marietta
  11. Lines: 95
  12.  
  13. In article <ellis.715893483@nova>, ellis@nova.gmi.edu (Stew Ellis) writes:
  14. |> pgrine@nic.cerf.net (Robert Young) writes:
  15. .
  16. .
  17. .
  18. |> >Has anyone implemented this setup with NIS with DNS (named).
  19. |> >The docs say that NIS can run with domain name services on top of it
  20. |> >I am reading chapter 17 of the SUN : System & Network Administration in
  21. |> >order to understand what is going on but I must confess that I am still
  22. |> >not sure how to go about it.
  23. .
  24. .
  25. .
  26. |> >pgrine@nic.cerf.net
  27. |> >(619) 431-2400, Ext 167
  28. |> 
  29. |> Once you have the DNS tables set up and are running in.named from
  30. |> /etc/rc.local, and have NIS running, you have three additional changes to
  31. |> make from the default Sun setup.  
  32. |> 
  33. |> 1) In /var/yp/Makefile, remove the comment
  34. |> from the line that reads:
  35. |> #B=-b
  36. |> and add one to the line that read:
  37. |> B=
  38. |> This tells the makedbm program to make the NIS databases in such a way to
  39. |> cooperate with DNS.
  40. |> 
  41. |> 2) In /etc/rc.local, set the -d switch for ypserv, again to get the NIS
  42. |> stuff to interact with DNS.
  43. |> 
  44. |> 3) Create an /etc/resolv.conf on the NIS/DNS server with the following info:
  45. |> domain your.domain
  46. |> nameserver ip-number_of_your_primary_nameserver
  47. |> nameserver ip-number_of_your_secondary_nameserver
  48. |> 
  49. |> When you run /var/yp/Makefile, watch to make sure the hosts databases are
  50. |> remade.  If they are not, then touch /etc/hosts and remake.
  51. |> 
  52. |> You also will have to reboot (fastboot) I believe to get the ypserv switch
  53. |> to take effect, although I guess you could kill the pid of ypserv and
  54. |> restart it with the -d.
  55.                                                ___________________
  56. |>   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  57.  
  58. The only problem is that this doesn't take into account your NIS slave servers.
  59. If the slaves also have a resolv.conf they can forward the DNS names correctly,
  60. _BUT_ it seems that they get their DNS names BEFORE they get NIS names.  This
  61. can cause some MAJOR headaches since a hostname will be returned from the DNS
  62. as pgl-dev2.den.mmc.com instead of pgl-dev2.  This, in turn, messes up
  63. your .rhost and host.equiv files.  If you put a default domain in resolv.conf
  64. then gethostbyname() always adds that default name on to the request and if
  65. the DNS server doesn't answer then it has been my experience (which may not
  66. be correct) that NIS won't know who the guy is either.  (ie.  pgl-dev2 gets
  67. the default domain .den.mmc.com appended to the request.  My DNS server
  68. knows this name but the NIS server only knows pgl-dev2, if DNS fails then
  69. so does NIS).  
  70.  
  71. It 'should' be easier than this.
  72.  
  73. To complicate things even more...
  74.  
  75. I'm running AIX 3.2 on RS6000's.  Page 14-44 of "Communication Concepts and
  76. Procedures" states the following:
  77.  
  78. In the middle of the page:
  79. "Resolver routines on hosts running TCP/IP attempt to resolve names using the
  80. following sources in the order listed:
  81. 1. The DOMAIN (named) name server
  82. 2. The local /etc/hosts file.
  83.  
  84. I you are using network information service (NIS) for name resolution, resolver 
  85. routines will attempt to resove names using the following sources in the order listed:
  86.  
  87. 1. The DOMAIN (named) name server
  88. 2. Network Information Service (NIS)
  89.  
  90. If you are using network information service (NIS) for name resolution, the 
  91. local /etc/hosts file will not be consulted."
  92.  
  93. Later on on the _SAME_ page...
  94.  
  95. "NOTE:  I you are using network information service for name resolution, resolver routines will attempt to resolve names using the following sources in the order listd:
  96.  
  97.     1. Network Information Service
  98.     2. The DOMAIN (named) name server
  99.     3. The local /etc/hots file"
  100.  
  101. I've read this 30 times or more to see if there is some 'qualifying' information
  102. on this page but I can't see it.
  103.  
  104. This _must_ be a FAQ.  Anyone have any ideas?
  105.  
  106. Thanks
  107. John Zwiebel
  108.