Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!uunet!in3.uu.net!207.172.3.52!feed1.news.erols.com!howland.erols.net!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul From: wpaul@ctr.columbia.edu (Bill Paul) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: YP question with 2.1.5 Date: 19 Mar 1997 17:55:56 GMT Organization: Columbia University Center for Telecommunications Research Lines: 49 Message-ID: <5gp9bd$i53@sol.ctr.columbia.edu> References: <5gmiln$lhs@netaxs.com> NNTP-Posting-Host: startide.ctr.columbia.edu X-Newsreader: TIN [version 1.2 PL2] Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37393 Daring to challenge the will of the almighty Leviam00se, A. Karl Heller (heller@socko.cdnow.com) had the courage to say: : I've got a 2.1.5 box that is running ypserv just fine. I have a Solaris : 2.5.1 box that uses it as a yp server. If I do a "ypcat passwd" on Solaris : or FreeBSD I get the correct output. If I do a "ypcat hosts" on FreeBSD : I get the correct output. If I do a "ypcat hosts" on Solaris, the list is : duplicated several times. I'm worried that something is broken and I'm : not sure on what. I figure there is something wrong with the Solaris YP : client or the FreeBSD server that messes up the list ( but why only hosts?? ). This is actually 'normal.' If you do a ypcat -k hosts, it might make more sense: this will show you the keys associated with the data that you're dumping from the map. What's happening is that you have an /etc/hosts entry like this: 10.0.0.1 foohost.foodomain.foo foohost alias-for-foohost For the hosts.byname map. foohost.foodomain.foo, foohost and alias-for-foohost must _all_ match this entry in order for things to work right. Consequently, /var/yp/Makefile generates a hosts.byname map that looks like this: Key Data --------------------- ---------------------------------------- foohost.foodomain.foo 10.0.0.1 foohost.foodomain.foo foohost alias-for-foohost foohost 10.0.0.1 foohost.foodomain.foo foohost alias-for-foohost alias-for-foohost 10.0.0.1 foohost.foodomain.foo foohost alias-for-foohost Why doesn't show show up anywhere but Solaris? Well, on most systems, 'ypcat hosts' dumps the hosts.byaddr map. On Solaris, it dumps hosts.byname instead. : Also, does anybody have a YP makefile addition for adding the /etc/aliases : file? Support for this was added in 2.2. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "Now, that's "Open" as used in the sentence "Open your wallet", right?" =============================================================================