|-n || This option affects the way ypserv handles yp_match requests for the hosts.byname and hosts.byaddress maps. By default, if ypserv cannot find an entry for a given host in its hosts maps, it will return an error and perform no further processing. With the -n flag, ypserv will go one step further: rather than giving up immediately, it will try to resolve the hostname or address using a DNS nameserver query. If the query is successful, ypserv will construct a fake database record and return it to the client, thereby making it seem as though the clients yp_match request succeeded. |
This feature is provided for compatibility with SunOS 4.1.x, which has brain-damaged resolver functions in its standard C library that depend on NIS for hostname and address resolution. The
.Fx resolver can be configured to do DNS queries directly, therefore it is not necessary to enable this option when serving only
.Fx NIS clients.
|-d || Cause the server to run in debugging mode. Normally, ypserv reports only unusual errors (access violations, file access failures) using the syslog(3) facility. In debug mode, the server does not background itself and prints extra status messages to stderr for each request that it receives. Also, while running in debug mode, ypserv will not spawn any additional subprocesses as it normally does when handling yp_all requests or doing DNS lookups. (These actions often take a fair amount of time to complete and are therefore handled in subprocesses, allowing the parent server process to go on handling other requests.) This makes it easier to trace the server with a debugging tool. |