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

Security Considerations

You must perform this task as superuser on the machine whose domain name you are changing.