Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* NIS + DNS, "makedbm -b"
@ 1994-11-05  0:25 Bin Li
  1994-11-11  3:28 ` Joerg Czeranski
  0 siblings, 1 reply; 2+ messages in thread
From: Bin Li @ 1994-11-05  0:25 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NIS + DNS, "makedbm -b"
  1994-11-05  0:25 NIS + DNS, "makedbm -b" Bin Li
@ 1994-11-11  3:28 ` Joerg Czeranski
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Czeranski @ 1994-11-11  3:28 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-11-11  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-05  0:25 NIS + DNS, "makedbm -b" Bin Li
1994-11-11  3:28 ` Joerg Czeranski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox