NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5 245
To Add a Host to an NIS+ Domain
1. Issue the following command, from any NIS+ client host, to add the
new host to the NIS+ hosts table:
nistbladm -a cname=hostname name=hostname addr=IPaddress \
comment=comment hosts.org_dir.domainname
You must have create permission for the hosts table to use this
command.
You must create one hosts table entry in which the cname and name
columns are both set to the official host name. If you wish to
configure aliases for the host name, create entries in which the cname
column contains the official host name and the name column contains
the alias.
If the domain is the default domain, you do not have to specify the
domain name, as in the following example:
nistbladm -a cname=romney.Eng.Wiz.Com
name=romney.Eng.Wiz.Com \
addr=15.14.13.12 comment= hosts.org_dir
2. Issue the following command to add a DES credential for the new
host to the cred table:
nisaddcred -p unix.hostname@domainname -P
hostname.domainname \
des domainname
If you do not specify the domain name as the last argument, the
credential is created in the default domain, as in the following
example:
nisaddcred -p unix.romney@Eng.Wiz.Com -P romney.Wiz.Com.
des
The argument following the -p option is the hostâs secure RPC
netname and does not end with a period. The argument following the
-P option is the hostâs NIS+ principal name and must end with a
period.
When NIS+ prompts you for a password, enter the root password of
the new host.
You must have create permission for the cred table to use this
command.