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:
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 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 |