[comp.sys.sun] Using YP and DNS/Resolver together

coolidge@brutus.cs.uiuc.edu (John Coolidge) (07/20/89)

With the new ddn update from Sun, it appears that the yp server should be
able to respond to host queries by referring to the nameservers listed in
/etc/resolv.conf. However, so far I've been completely unsuccessful at
making this work --- yp continues to just look in the old hosts map files.
Has anyone gotten yp to refer host questions to the named? If so, what did
you do?

Thanks in advance,
John Coolidge
coolidge@cs.uiuc.edu

zjat02@uunet.uu.net (Jon A. Tankersley) (08/06/89)

Don't forget to set -b in the /var/yp/Makefile for makedbm on hosts.*.  On
386i, don't forget that and the ypserv -i.

There are still some problems with the way it works, if the primary named
system dies a gruesome death, rlogin, telnet, rsh, etc. all hang.  A
graceful death (kill -9, etc.) don't.

Also ypxfr will complain during the ypinit -s.

yp also generates bogus lookups for ^A.domain.name and the like.

yp doesn't recognize no-such-host for bogus lookups.   telnet bogushost
will sit there FOREVER.  You can ^C out though.

I've got it working just fine here, with YP domains holding only thoses
hosts locally on their subnet and the nameservers listted.  All other
queries go to named.

Check your setup with nslookup.
-tank-
#include <std/disclaimer.h>		/* nobody knows the trouble I .... */
tank@apctrc.trc.amoco.com    ..!uunet!apctrc!tank