chypdom Command

Purpose

Changes the current domain name of the system.

Syntax

/usr/sbin/chypdom [ -I | -B | -N ] DomainName

Description

The chypdom command will change the domain name of the system. The DomainName parameter specifies the new domain name for the system.

You can use the Network application in Web-based System Manager (wsm) to change network characteristics. You could also use the System Management Interface Tool (SMIT) smit chypdom fast path to run this command.

Flags

Item Description
-I Specifies that the domain name should be changed in the /etc/rc.nfs file. With this flag, the domain name will be changed on the next system restart.
-B Specifies that the domain name should be changed now and the /etc/rc.nfs file should be updated to reflect the change.
-N Specifies that the domain name should be changed now. No change is made to the /etc/rc.nfs file. The domainname command is executed to change the domain name of the system.

Examples

To modify the /etc/rc.nfs file to set the domain name to mydomain on the next system restart, enter:

chypdom -I mydomain

Files

Item Description
/etc/rc.nfs Contains the startup script for the NFS and NIS daemons.