This is a first attempt at an YP (NIS version 2) Server. It is part of the NYS Project. See the file COPYING for copying restrictions. It is available under the GNU General Public License. Databases should be stored in /var/yp//. Use the "dbload" program to create/fill "map" databases with entries. The file "ypMakefile" should be installed in /var/yp/, "dbload" and "mknetid" in /usr/lib/yp. Then do "cd /var/yp; make". If not, the just must modify this Makefile to suit your setup! Start the YP Server with "ypserv" (or "ypserv -debug /foo/bar" to run in debug mode using the database directory /foo/bar). The server can optionally to DNS lookups for hosts not found in the regular YP hosts map. But beware that for this to work then you *must* link the YP server to a library where the gethostbyname() and gethostbyaddr() routines always talk to an YP server. The default routines in the normal libc libraries often try to check the YP servers first -> causing a nice loop... The DNS code is not very optimal and should be redone completely (and moved to a separate process for performance reasons). DNS lookups is enabled by using the "-dns" flag. There is a first stub at implementing the "securenets" feature in that there is a function in "server.c" called "is_valid_host()" that all YP functions call to authorize the calling host. See the file "README.secure" for more information. There is a mailing list for NYS developement where I announce new version of the NYS YP Server and the NYS NSL Library. Send email to: info-nys-request@lysator.liu.se and ask to be added. The mailing list itself is at: info-nys@lysator.liu.se. This server has been compiled on Linux (1.2), SunOS 4.1.3 & SunOS 5.4. HOW TO BUILD AND INSTALL: 1. Edit the "Makefile" to suit your needs. 2. Type "make". 3. Type "make install" as root. 4. Possible modify /var/yp/Makefile to suit your setup. Please note that the /var/yp/Makefile needs GNU Awk (or a compatible version) to work. Author: Peter Eriksson , 13 March 1995.