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

How to Set Global Preferences for a Remote Domain

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

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


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

Where:

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


polaris# nisprefadm -a -G -C 111.11.111.11 -d sales.doc.com. nismaster2