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

  1. Path: sparky!uunet!cis.ohio-state.edu!rutgers!ub!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.nfs
  4. Subject: NIS and DNS
  5. Message-ID: <1992Sep5.030114.17539@den.mmc.com>
  6. Date: 5 Sep 92 03:01:14 GMT
  7. Sender: news@den.mmc.com (News)
  8. Organization: PAGE @ Martin-Marietta
  9. Lines: 40
  10. Nntp-Posting-Host: 147.105.208.161
  11.  
  12. I've been looking at this problem for over a year on an off and on basis and I haven't yet fully solved it.
  13.  
  14. I am running NIS on my network with 3 slaves 1 master and about 100 clients.  Sometimes though I would like to be able to just "ping mit.edu" instead of having to try running through nslookup or some similar kludge.  It is fairly clear what happens when I run NIS alone or DNS alone but when both of them run together things get really confusing.  Thanks to Hal Stern's NFS & NIS book I figured out how to set the clients to get full domain names from a DNS server through the ypserv daemon.  (add a -b to the M
  15.  
  16.  
  17.  
  18.  
  19.  
  20. akefile in /etc/yp).  However, since the NIS slaves have /etc/resolv.conf set to look for DNS names, they seem to blow of NIS and go straight to the DNS server.  (The master NIS server may also do this but I don't think so yet)
  21.  
  22. Well, if the slave loses contact with the DNS server he can't talk to anyone.  The NIS map is in place and show up with a ypcat but an attempt to ping a host results in failure until the connection to the DNS server comes back up.  In addition there are horrible problems with domain names.  (Right now I don't have resolv.conf using any).  
  23.  
  24. Here is a slave server response: 
  25. pgl-hsp# ypwhich
  26. pgl-devsvr.den.mmc.com 
  27.  
  28. and a client response to that same server 
  29.  
  30. pgl-amp2:/] ypwhich
  31. pgl-hsp
  32.  
  33. and the master is bound to itself:
  34. [ pgl-devsvr /etc/yp ]
  35. root: ypwhich
  36. pgl-devsvr
  37.  
  38. So why does the slave have the domain name added to it?
  39.  
  40. Watch what happens when I reset the master:
  41.  
  42. [ pgl-devsvr /etc/yp ]
  43. root: ypwhich
  44. pgl-devsvr
  45. [ pgl-devsvr /etc/yp ]
  46. root:  /usr/etc/yp/ypset pgl-hsp
  47. [ pgl-devsvr /etc/yp ]
  48. root: ypwhich
  49. pgl-hsp.den.mmc.com
  50. [ pgl-devsvr /etc/yp ]
  51.  
  52. I should tell you that my NIS servers are RS6000's with AIX 3.2 and the DNS servers are Sun's.  
  53.  
  54. I want the slaves to get their binding from NIS, not from DNS, I can not depend on the path to the DNS servers.  I could set up my master NIS as a DNS server also but I don't want to have to.
  55.  
  56. Any ideas?
  57.