Rename a Window 2008 server Domain controler.
To accomplish this task you must be a member of the Domain Admins group.
To rename a DC with the name from server1 in mydomain.local domain to dc1 follow the steps below
1. Open Command Prompt in administrative mode and type the following:
NETDOM computername server1.mydomain.local /add:dc1.mydomain.local
This command will update the service principal name (SPN) attributes in Active Directory for this computer account, and register DNS resource records for the new computer name. The SPN value of the computer account must be replicated to all DCs for the domain, and the DNS resource records for the new computer name must be distributed to all the authoritative DNS servers for the domain name. If the updates and registrations have not occurred prior to removing the old computer name, then some clients may be unable to locate this computer using the new or old name. Therefore, it's very important to wait till the Active Directory replication finishes a replication cycle. You can check that by using tools such as REPADMIN and REPLMON.
You can verify the new name was indeed added to the computer object by viewing it through ADSIEDIT.MSC (which, for Windows Server 2008, is installed by default). Navigate to the computer object and right-click it. Select Properties:
Scroll down in the list of available attributes till you reach the attribute called msDS-AdditionalDnsHostName.
2. Ensure the computer account updates and DNS registrations are completed, then type:
NETDOM computername server1.mydomain.local /makeprimary:dc1.mydomain.local
You can insure the change with ADSIEDIT.MSC. Scroll down in the list of available attributes for the computer object untill you reach the attribute called msDS-AdditionalDnsHostName.
The old name should appear in the attribute's properties.
3. Restart the server.
4. Open Command Prompt in administrative mode and type the following:
NETDOM computername dc1.mydomain.local /remove:server1.mydomain.local
5. Make sure that the changes have successfully been replicated to all the DCs on your domain.