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

ProcedureHow to Set Global Preferences for a Remote NIS+ Domain

To assign server preferences for an individual machine in a remote domain or all the machines on a subnet in a remote domain:

  1. Run nisprefadm with the -C, -G, and -d options.

    #nisprefadm -a -G -C name \
     -d domain servers(preferences)


    • name is the IP number of a subnet or the name of a machine. The modifications you make with this command apply to the subnet or machine that you name.

    • domainname is the name of the remote domain.

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

    For example, to add the nismaster2 server with a default preference number of zero to the preferred server list of the subnet in the remote domain:

    polaris# nisprefadm -a -G -C -d nismaster2