Rename a domain controller


In this tutorial, we will see how to rename domain controller in the “rules of the art”.

The name change happens in several times, here is a summary:

  • Add a secondary name to the DC
  • Permutation of the secondary name in primary
  • Deleting the secondary name

Change the name of a domain controller

The following commands are to be executed on the controller to rename as Administrator.

Add a secondary name:

netdom computername dc-old-name.dom.loc /add:dc-new-name-secondary.dom.loc

It is possible to check that the command is taken into account by looking at the Active Directory attribute msDS-AdditionalDnsHostName.

Passer le nom secondaire en primaire :

netdom computername dc-old-name.dom.loc /makeprimary:dc-new-name-secondary.dom.loc

Restart the server to take into account the name change.

Delete the old name:

netdom computername dc-new-name-secondary.dom.loc /remove:dc-old-name.dom.loc 


It is possible to display the names with the following command:

netdom computername dc-name.dom.loc /enumerate

Related Posts

Remove an Active Directory Domain Controller

In this article, we will see how to remove a domain controller in an Active Directory environment. The deletion is done in two steps: Demote the domain controller: remove the controller configuration.

Active Directory: trust relationship between two forests / domains

Presentation The trust relationship between two Active Directory drill bits / domains is a trusted link that allows authenticated users to access resources in another domain. An approval relationship

Active Directory: Multi Site, Subnet, and Replication Configuration

Presentation In this tutorial, we will approach the notions of Active Directory sites as well as subnets. Active Directory sites can optimize management in multi-site / network infrastructures by: Man