Maintenance Commands                            setdomainname(1m)

NAME
     setdomainname - changes the name of a  PC  NetLink  server's
     domain

SYNOPSIS
     setdomainname [ -I instance ]
     setdomainname [ -I instance ] -n new-domain-name [ -s ]
     setdomainname [ -I instance ] -d primary-name [-a admin] [-p pass_
word] [ -s ]

DESCRIPTION
     The setdomainname command is used to change the name of a PC
     NetLink  domain.  Domain controllers can use this command to
     change the name of their own domain.  Member servers can use
     this  command to join an existing domain without re-building
     their local account databases.  It is an interactive command
     but also accepts command line arguments.

     If an error occurs during processing  or  if  you  interrupt
     this  command, it will restore the original domain name. You
     should run this command on  the  primary  domain  controller
     first,  and then on any backup domain controllers and member
     servers.  This command must be run on every server within  a
     domain.   Otherwise,  domain-wide  services  will  not  work
     correctly.

	 You must be logged in as root to run this command.

OPTIONS
  -I instance
     Specifies the PCNL instance name  or  number.  In  a  multi-
     instance environment instance may be specified either on the
     command line or by the environment  variable  PCNL_INSTANCE.
     If  there  is only one instance configured, it is not neces-
     sary to specify this argument.

  -n new-domain-name
     Represents the new name of the domain.

  -d primary-name
     (for a member server) name of the primary domain  controller
     in the new domain.

  -a admin
     (for a member  server)  administrative  account  at  primary
     domain controller.

  -p password
     (for a member server) password of the administrative account
     at primary domain controller.

  -s
     Prevents the server from starting automatically.

SunOS 5.9           Last change: 14 Mar 2000                    1

Maintenance Commands                            setdomainname(1m)

EXAMPLE
     If a server is a backup domain controller named sales_bdc in
     the  domain  sales, and you want to rename it to localsales,
     you can use the setdomainname command.

     You can either run the setdomainname command and respond  to
     individual prompts, or you can type the following command:

          setdomainname -n localsales -s