SUMMARY: DNS resolution issue/DNS/NIS HP->Sun

From: Marc L. Summers-SysAdmin (marcs@tdd.hbo.nec.com)
Date: Wed Dec 06 1995 - 13:05:36 CST


Sorry I was not so clear as to what OS's I had.

Sun (clients), 4.1.3U1
HP (server), 9.01 HPUX (720)

The HP is the (only) server and is running DNS and NIS

I called up HP and the anwer is:

Load these two patches on your HP server:

PHNE_5992 and PHCO_6191

Plus, add this mod to your /usr/etc/yp/ypmake script

the ypmake script must be modified to allow
the NIS server to use DNS after the patches have been installed.
I have provided an example below:

# Add the "-b" as shown on the two lines marked "<<<<<<"

hosts() {
   if [ "$LONG_FILENAMES" = "TRUE" ]; then
        MAPNAME1=hosts.byaddr
        MAPNAME2=hosts.byname
   else
        MAPNAME1=hosts.byad
        MAPNAME2=hosts.byna
   fi
   $NIS_DIR/stdhosts $1 | \
        awk 'BEGIN { OFS="\t"; } $1 !~ /^#/ { print $1, $0 }' | \
        $MAKEDBM -b - $MAPDIR/$MAPNAME1 <<<<<<<<
   if [ $? -ne 0 ]; then return 1; fi
   sed -e "/^#/d" -e s/#.*$// $1 | $NIS_DIR/stdhosts | \
        awk '{ for (i = 2; i <= NF; i++) print $i, $0 }' | \
        $MAKEDBM -b -l - $MAPDIR/$MAPNAME2 <<<<<<<<
}

And that's it.

Thanks to all for all of your suggestions.

--
+ ------------------------------------------------- +
+    +++ N  E  C +++ +++ A  M  E  R  I  C  A +++    +
+ ------------------------------------------------- +
+ Marc L. Summers              System Administrator +
+ 3100 N.E. Shute Road      Hillsboro Oregon  97124 +
+ PH: 1-503-681-3338            FAX: 1-503-681-3304 +
+ Email:                      marcs@tdd.hbo.nec.com +
+ ---------- Sic transit gloria mundi. ------------ +
+ --- "Thus passes away the glory of the world." -- +
+ ------------------------------------------------- +



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:35 CDT