Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: czeranski@informatik.tu-clausthal.de (Joerg Czeranski)
Subject: Re: NIS + DNS, "makedbm -b"
Date: 11 Nov 1994 03:28:24 GMT	[thread overview]
Message-ID: <39uoco$m44@ikarus.rz.tu-clausthal.de> (raw)
In-Reply-To: 39ejdk$2fu@newstand.syr.edu

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/


      reply	other threads:[~1994-11-11  3:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-05  0:25 NIS + DNS, "makedbm -b" Bin Li
1994-11-11  3:28 ` Joerg Czeranski [this message]
read-only archive

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