home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9462 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.4 KB  |  52 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!boulder!csn!news.den.mmc.com!pgl-devsvr.den.mmc.com!jzwiebel
  3. From: jzwiebel@pgl-devsvr.den.mmc.com (John Zwiebel (303)977-1480)
  4. Subject: NIS and DNS conflicts
  5. Message-ID: <1992Sep8.205237.1447@den.mmc.com>
  6. Sender: news@den.mmc.com (News)
  7. Nntp-Posting-Host: pgl-netmgr.den.mmc.com
  8. Organization: PAGE @ Martin-Marietta
  9. Date: Tue, 8 Sep 1992 20:52:37 GMT
  10. Lines: 40
  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
  15. 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)
  16.  
  17. 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).  
  18.  
  19. Here is a slave server response: 
  20. pgl-hsp# ypwhich
  21. pgl-devsvr.den.mmc.com 
  22.  
  23. and a client response to that same server 
  24.  
  25. pgl-amp2:/] ypwhich
  26. pgl-hsp
  27.  
  28. and the master is bound to itself:
  29. [ pgl-devsvr /etc/yp ]
  30. root: ypwhich
  31. pgl-devsvr
  32.  
  33. So why does the slave have the domain name added to it?
  34.  
  35. Watch what happens when I reset the master:
  36.  
  37. [ pgl-devsvr /etc/yp ]
  38. root: ypwhich
  39. pgl-devsvr
  40. [ pgl-devsvr /etc/yp ]
  41. root:  /usr/etc/yp/ypset pgl-hsp
  42. [ pgl-devsvr /etc/yp ]
  43. root: ypwhich
  44. pgl-hsp.den.mmc.com
  45. [ pgl-devsvr /etc/yp ]
  46.  
  47. I should tell you that my NIS servers are RS6000's with AIX 3.2 and the DNS servers are Sun's.  
  48.  
  49. 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.
  50.  
  51. Any ideas?
  52.