System Administration Guide: Naming and Directory Services (NIS+)

Specifying Local NIS+ Server Preference

These procedures explain how to create or change a local client_info file that specifies server preferences for the machine on which it resides.

If a machine has a local /var/nis/client_info file, that machine takes its server preferences from its local file rather than the global client_info tables on NIS+ servers. In other words, a local file overrides any global table.

To assign server preferences, run nisprefadm with either the:

ProcedureHow to Set Preferences on a Local NIS+ Machine

To assign server preferences for the local machine that you are running the nisprefadm command on:

  1. Run nisprefadm with the -L option and either the -a or -u options.

    #nisprefadm -a -L servers(preferences)

    Where servers(preferences) are one or more servers with optional preference ranking numbers.

    For example, to specify that the deneb machine first seek NIS+ information from the replica3 server with a default preference number of zero and then from the replica6 server (with a preference number of 1) in the domain:

    deneb# nisprefadm -a -L replica3 replica6.manf(1)