Renaming Domains

An Overview of the Domain Renaming Feature

With the Windows NT 4 domain model, you had to completely rebuild an existing domain if you wanted to change the names of any of your existing domains. In Windows 2000 domains, you also have to create a new domain but the Active Directory Object Manager can be used to migrate existing users, groups and computers into the new domain. The Active Directory Object Manager plays a vital role in moving the contents of existing Windows 2000 domains into new domain structures. The Active Directory Object Manager is included in the Windows 2000 Support Tools. Although you cannot directly change the DNS and NetBIOS names of a Windows 2000 domain, the Active Directory Object Manager allows you to migrate the objects of an existing domain into a new domain. Windows Server 2003 on the other hand includes a domain rename utility and the capability to rename domains.

In Windows Server 2003, you can rename a domain in a forest which has domain controllers running Windows Server 2003. You can also move any of your existing domains to a different location in the hierarchy of domains. Lastly, you can rename domain controllers with no longer needing to first demote them. The renaming domain feature of Windows Server 2003 allows you to address changing organization needs such as reorganizations, and mergers because it enables you to change your existing forest structure. You can move a domain to any location within the forest in which it is located. You can also raise a child domain to make it the root of its own domain tree. Renaming domains therefore allows you to create a new forest structure.
You can also rename domains without actually impacting the trust relationships between existing domains within your Active Directory environment. When you rename domains, you can change the DNS and NetBIOS names of the domain, but the domain GUID and domain SID are left intact. This allows you to rename the domain and all associated child domains without affecting the structure of the domain tree.

The domain rename utility, Rendom.exe, can be found on the Windows Server 2003 CD-ROM, in the Valueadd\Msft\Mgmt\Domren folder. The folder also includes another tool, Gpfixup.exe, which is used to clean up the Global Catalog. You can use Rendom.exe for the following tasks:

After you have used Rendom.exe to perform one of the above tasks/processes, your end result should be a well-formed forest. In a well-formed forest, domains in the forest must make up a DNS tree(s) with the forest root domain being one of the trees. In addition to this, the domain directory partition cannot have a parent application directory partition.

The capabilities available in Windows Server 2003 differ to what you could achieve with Windows 2000 domains using the Active Directory Object Manager. Windows 2000 domains have the following limitations:

Windows Server 2003 also has a few limitations when it comes to restructuring a forest, and renaming domains. These are summarized below:

The Requirements and Consequences of Domain Renaming

Before you can use Rendom.exe to perform any domain renaming tasks, you have to ensure the following:

A few factors on the domain rename process should be kept in mind. These are noted below:

Preparing for the Domain Rename Process

The process of preparing for the domain renaming procedure is discussed in the forthcoming section of this article.

The Domain Rename Process

Before performing any domain rename processes, you should first perform a full backup of the system state data hosted by each domain controller within the forest. All infrastructure components should be backed up.

The member server which you are going to use to perform the domain rename process from should be identified and prepared. The member server has to be a member of one of the domains that you planning to rename. Remember that you cannot perform the domain rename process from a domain controller. The member server (also called a control station) which you choose has to be running one of the following Windows Server 2003 editions:

You also have to install a set of Windows Support tools on the control station/member server that is necessary for the domain rename process. These rename tools are located on the Windows Server 2003 CD-ROM.
Use the steps below to install the necessary set of rename tools on the control station/member server.

  1. On the control station, create a folder in which the rename tools should be placed.
  2. Place the Windows Server 2003 CD-ROM in the CD-ROM drive.
  3. From the command prompt, copy the rename tools from the Valueadd\Msft\Mgmt\Domren folder. Ensure that rendom.exe and gpfixup.exe are copied to the member server
  4. Install the Windows Server 2003 Support tools on the member server as well.
  5. Ensure that repadmin.exe and dfsutil.exe are installed.

The following step in the domain rename process is to use rendom.exe to generate a current forest description file. This file will be used as the baseline from which you will work. The forest description file will contain all existing domain directory partitions and application directory partitions within your forest.
Use the steps below to create a forest description file:

  1. On the member server, using Enterprise Administrator privileges open a command prompt.
  2. Switch to the RenameTools directory.
  3. Enter rendom /list to create the domainlist.xml file. This is the file that lists all the existing domain directory partitions and application directory partitions within your forest. The domainlist.xml file is created in the current directory.
  4. Enter copy domainlist.xml domainlist-save.xml to save the forest description file.

The next step in the domain rename process is to design the new forest. To do this, use a text editor like Notepad to change the domainlist.xml file. You can change the existing domain names to new domain names, and change the existing application directory partitions' names to new names. Remember that when you change the name of a domain, you also need to change the associated DNS-specific application directory partition name. When you rename a parent domain that includes child domains, remember to change the names of all associated child domains as well. After completing all changes, verify the contents of the domainlist.xml file. You can use the rendom /showforest command to view the new forest structure in the domainlist.xml file.

After you have created the changes in the domainlist.xml file, you next have to create the domain rename instructions that will execute on each domain controller so that your changes can be implemented. Your changes are eventually written to the msDS-UpdateScript attribute on the Partitions container object. The Partitions container object is found in the configuration directory partition on the Domain Naming Master for the forest.
Use the steps below to create the domain rename instructions

  1. From a command prompt, switch to the RenameTools directory
  2. Type the following command to upload the domain rename instructions to Active Directory: rendom /upload.

The command creates a dclist.xml state file in the RenameTools current directory. This is the file that rendom.exe uses to monitor the domain rename process and the state of the domain controllers within the forest.

The following step in the domain rename process is to force Active Directory replication so that the domain rename instructions loaded to the Domain Naming Master are pushed to each domain controller within the forest.
Use the steps below to force Active Directory replication:

  1. From a command prompt, switch to the RenameTools directory
  2. Enter the following command: repadmin /syncall /d /e /P /q DomainNamingMaster (DomainNamingMaster = DNS host name of the existing Domain Naming Master for the particular forest)

Following this, you need to verify that the DNS records for the new domain have been created. The Net Logon service of each domain controller publishes the SRV resource records to the authoritative DNS servers.
To verify the DNS records,

  1. Click Start, Programs, Administrative Tools, and then DNS
  2. Proceed to expand the server name, Forward Lookup Zones, and then expand the domain which you want to check.
  3. Check that the following DNS records exist for each domain controller in the domain:
    • One CNAME record associated with each domain controller on all authoritative DNS servers.
    • One SRV record for the PDC FSMO on all authoritative DNS servers
    • One SRV record for one domain controller on all authoritative DNS servers for every domain
    • One SRV record associated with one Global Catalog on all authoritative DNS servers in the forest.

After verifying that the necessary DNS records exist, you have to verify the status of the domain controllers within the forest. This essentially involves checking the Active Directory database state on each domain controller.

  1. From a command prompt, switch to the RenameTools directory
  2. Enter the following command: repadmin/prepare.
  3. At this point, rendom.exe verifies that the msDS-UpdateScript and msDS-DnsRootAlias attributes are replicated to each domain controller within the forest. It also checks that the servicePrincipalName attribute is replicated to each domain controller within the domain and the Global Catalog. Rendom.exe checks too that the dclist.xml state file is present in the RenameTools directory. It verifies that the file has an entry for each domain controller in the forest.
  4. The member server/control station sends a Remote Procedure Call (RPC) to each domain controller in the forest as well to check the state of the Active Directory directory copy. The status of the domain controllers is updated in the dclist.xml file state file to the Prepared status. This indicates that the domain controllers are ready to run the domain rename instructions.

The following step is to execute the domain rename instructions using the rendom utility on the domain controllers. What happens is that the control station/member server sends an RPC to each domain controller. When a domain controller receives its RPC from the control station, it in turn executes the domain rename instructions. The domain controller reboots after this. After all domain controllers have executed the domain rename instructions, you can check the status of the domain controllers in the dclist.xml state file. A status of Done indicates that the domain controller has successfully executed the domain rename process. A status of Error indicates that the domain controller was unable to conclude the domain rename process. Any domain controller that is unable to complete the domain renaming process has to be removed from the forest.

Use the steps below to execute the domain rename instructions on your domain controllers within the forest. You have to repeat the process until each domain controller is updated or to the point that a particular domain controller could not complete the domain rename process. As mentioned earlier, you can verify the status of the domain controllers in the dclist.xml state file.

  1. From a command prompt, switch to the RenameTools directory
  2. Type the following command: rendom /execute
  3. Proceed to check the status of the domain controllers in the dclist.xml state file.

You can force the rendom/execute command if you think that a domain controller which has the Error state in the dclist.xml file can be recovered. Forcing the rendom/execute command, results in the control station resending the RPC to the particular domain controller
To do this,

  1. From a command prompt, switch to the RenameTools directory
  2. In the dclist.xml file, find the Retry> field for the domain controller that you want to force the rendom /execute command for.
  3. Proceed to edit this to Retry>yes for the particular domain controller.
  4. To resend the RPC to the particular domain controller, proceed to enter the rendom /execute command.
  5. Recheck the status of the particular domain controller in the dclist.xml state file. A status of Done would mean that the domain rename process completed successfully on the particular domain controller. If the state is Prepared, try entering the rendom /execute command again. If the state is Error, consider removing the domain controller from the forest.

Tasks that should be completed after the domain rename process

Renaming Domain Controllers

Because the DNS host names of domain controllers in the renamed domains do not automatically update during the domain rename process, you have to change the DNS host name. With Windows Server 2003, you no longer have to first demote the domain controller, then rename it, and then re-promote the server to be a domain controller. This was basically the process for Windows 2000 domains.
In Windows Server 2003, you can rename the domain controller without having to demote it if the domain functional level is raised to the Windows Server 2003 domain functional level. What this basically means is that each domain controller has to be running Windows Server 2003. To raise the domain functional level for domain controllers in the domain, use the Active Directory Domains and Trusts console.
Another task that should be performed before you can rename the domain controllers is to move all Global Catalog and all FSMO roles from the root domain controller to a different domain controller. This task is not necessary if you have manually created these roles within your Active Directory environment.
The Netdom command-line utility is used to rename domain controllers. The tool is included in the Windows Support Tools on the Windows Server 2003 Setup CD-ROM. The Netdom Computername command is the command used to manage computer names.

To rename a domain controller, use the steps listed in the following section:

  1. Open a command prompt.
  2. Execute the following domain controller rename command: Netdom Computername OldComputerName /add:NewComputerName.
    • OldComputerName = existing computer name/IP address of the domain controller that you are renaming.
    • NewComputerName = new name for the domain controller
  3. After a while, the computer account should be replicated throughout the domain. All appropriate DNS resource records should also be distributed to all authoritative DNS servers. This is usually after the replication latency time interval.
  4. Enter the following command at the command prompt: netdom computername OldComputerName /makeprimary: NewComputerName.
  5. Reboot the computer.
  6. You can use perform the following tasks to verify that the domain controller was renamed:
    • At the command prompt, enter netdom computername NewComputerName /enumerate. At this point, the domain controller has two names
    • Click Start, Control Panel, and then click System. Check that the name that appears on the Computer Name tab after Full Computer Name is correct. Click Cancel to exit.
  7. You now have to remove the old domain controller name. To do this, enter the following command at the command prompt: netdom computername NewComputerName /remove:OldComputerName.


Top 5 Free Networking Tools

Bookmark Renaming Domains
Domains
Free domain w/ annual hosting plan from the original domain registrar.

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.