From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f9fd0025fd3eff4 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-10 20:06:28 PST Path: nntp.gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!ikarus.rz.tu-clausthal.de!idefix.rz.tu-clausthal.de!injc From: czeranski@informatik.tu-clausthal.de (Joerg Czeranski) Newsgroups: comp.unix.osf.osf1 Subject: Re: NIS + DNS, "makedbm -b" Date: 11 Nov 1994 03:28:24 GMT Organization: TU Clausthal, IfI Distribution: world Message-ID: <39uoco$m44@ikarus.rz.tu-clausthal.de> References: <39ejdk$2fu@newstand.syr.edu> NNTP-Posting-Host: idefix.rz.tu-clausthal.de X-Newsreader: TIN [version 1.2 RZ-TUC(2) PL2] Bin Li (bli@npac.syr.edu) wrote: > Do you happen to know the OSF1 equivalence of a SunOS command "makedbm -b"? > On the SUN, the "-b" option propagate a map to all servers using the > interdomain name server named. I need to use the domain name server on > other machines along with NIS on the OSF1. I couldn't figure out how to > do it. I would appreciate it very much if you could help. > > Thank you. > > > Bin Li I changed the creation of hosts.byname and hosts.byaddr in /var/yp/Makefile the following way: originally: $(SED) -e "/^#/d" -e s/#.*$$// $(DIR)/hosts | $(STDHOSTS) \ | $(AWK) '{for (i = 2; i <= NF; i++) print $$i, $$0}' \ | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byname; \ $(STDHOSTS) $(DIR)/hosts | \ $(AWK) 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$1, $$0 }' \ | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byaddr; \ now: ( $(SED) -e "/^#/d" -e s/#.*$$// $(DIR)/hosts | $(STDHOSTS) \ | $(AWK) '{for (i = 2; i <= NF; i++) print $$i, $$0}' \ ; echo YP_INTERDOMAIN) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byname; \ ( $(STDHOSTS) $(DIR)/hosts | \ $(AWK) 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$1, $$0 }' \ ; echo YP_INTERDOMAIN) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byaddr; \ It works on OSF/1 1.3 and 2.0 YP master servers. To enable the Sun clients to do DNS, I set up a YP slave server on a Sun and made sure (with ypbind -ypsetme/ypset) the Suns bind to this slave server. It doesn't seem to harm other client machines, and as long as they don't bind to the Sun, they never even know that something is strange. We'll install Solaris 2.4 when it arrives here; then we won't need this hack anymore, as Solaris 2.x has the equivalent of /etc/svc.conf: /etc/nsswitch.conf joerg -- Joerg Czeranski EMail czeranski@informatik.tu-clausthal.de Osteroeder Strasse 55 czeranski@rz.tu-clausthal.de D 38678 Clausthal-Zellerfeld WWW http://www.rz.tu-clausthal.de/~injc/