How to Change Domain Controller IP Address

Easy methods to change the IP address of a domain controller

Reading time icon 5 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • The domain controller authenticates a user using the data stored in the Active Directory.
  • Changing the IP address of a domain controller can cause issues for the administrator.
  • Thankfully, this guide gives you the safe method to change the IP address of the domain controller and change the system name.
Software to hide your IP address

Domain Controllers (DCs) are actively used for authenticating users and the devices connected to the domain.

Because of these works, they are best set up and left as is. This becomes important in terms of their hostname and network details.

Changing the IP of the domain controller may not be ever required but a time may come when you change it.

Moreover, domain controllers are assigned to a static IP address so they are reliable and discovered across the network without any issues.

While changing the IP address of the domain controller may cause certain issues for the administrator, because of its critical nature.

However, if the DC is not hosting any other roles, changing IP isn’t a big problem and can be done easily.

In this guide, we will show you exactly how you can change the IP of the domain controller safely and with no issues. Let us get right into it.

How do I find the IP address of my domain controller?

  1. Open the Start menu.
  2. Type Command Prompt and open it as an administrator.
  3. Execute the below command and press Enter. set userchange IP of domain controller cmd
    • If the USERDNSDOMAIN isn’t displayed then likely the server isn’t a domain member. You may want to consult with your Network Admin because it will be required in the later steps.
    • You need the USERDOMAIN value for the DCDiag test.
  4. Type the below and press Enter. nslookup
  5. Execute the below command and press Enter. set type=all
  6. Type the below command and press Enter. _ldap._tcp.dc._msdcs.<DOMAIN_NAME>change IP of domain controller press enter
    • Replace the <DOMAIN_NAME> with the USERDNSDOMAIN value you got in Step 3.
  7. This DNS query will display the SRV record of each domain controller.
  8. Check for hosts containing the same name or the same IP address. Notably, each entry should have a unique hostname and IP address.
  9. To exit out of nslookup, enter: exit

Using the above steps, you would be able to find the IP address of your domain controller. The steps may look a bit too much but it is for those who know what they are doing.

How do I change the system name and IP address from the domain control network?

1. Rename the system name

1.1. Using System Properties

  1. Download the Remote Server Administration Tools.
  2. Launch the installer.
  3. Read and accept the license and click I accept.
  4. After the installation is complete, open the RSAT tool.
  5. On the start screen, click on Server Manager.
  6. Click on Change System Properties.
  7. Click on the Computer Name tab, and click Change.
  8. Hit the OK button to acknowledge the renaming.
  9. Under Computer Name, type the name you wish.
  10. Click OK.

1.2. Using Netdom

  1. Open the Start menu.
  2. Run the command prompt as an administrator.
  3. Execute the below command and press Enter. netdom computername <Current computer name> /add:<New Computer Name>
    • <Current Computer Name>: Enter the current, or primary, fully qualified DNS name of the computer that you are renaming.
    • <New Computer Name>: Enter the full qualified DNS name for the computer you are renaming.
  4. Type the below command to assign the new name to your PC and press Enter. netdom computername <CurrentComputerName> /makeprimary:<NewComputerName>
  5. Restart your PC.
  6. After the PC reboots, open CMD.
  7. Execute the below command. netdom computername <NewComputerName> /remove:<OldComputerName>

We have shown you two methods to change the system name, i.e. one using system properties and the other one using Netdom.

Do note that whichever method you choose, you have to update the FRS object and Update the DFS Replication member object.

2. Update the FRS member object

  1. Open the Start menu.
  2. Open Windows Tools.
  3. Select Active Directory Users and Computers.
  4. Click Advanced Features in the View menu.
  5. Expand the domain node, System, File Replication Service, and Domain System Volume (SYSVOL share).
  6. The objects below Domain System Volume (SYSVOL share) are the FSR Member objects, find the object that shows the old name of the domain controller.
  7. Right-click the FRS Member object and click Rename.
  8. Type the new name of the domain controller.

3. Update the DFS Replication member object

  1. Open the Start menu.
  2. Open Windows Tools.
  3. Select Active Directory Users and Computers.
  4. Click Advanced Features in the View menu.
  5. Expand the domain nodeSystemDFSR-GlobalSettingsDomain System Volume, and Topology.
  6. Locate the <DomainControllerName> object showing the old name of the DC.
  7. Right-click the msDFSR-Member object and click Rename.
  8. Enter the new name of the domain controller.

4. Change the IP address of domain controller

1. Press the Windows key on your keyboard or click on the Start button on your taskbar to open the Search menu.

2. Type cmd in the search box and right-click on the first result, then select Run as Administrator.

cmd-run-admin 0x80070002 windows update

3. Write the below command and press Enter to remove any cached DNS entries created by the local DNS server: ipconfig /flushdns

flush dns

4. Execute the below commands one by one and press Enter:

Net Stop DNS

Net Start DNS

Net Stop Logon

Net Start Logon

 

5. Now run the below command to ensure the new IP address is registered by the DNS server: ipconfig /registerdns

ipconfig command cmd

6. Finally, run the below command to update the Service Principal Name (SPN) records: dcdiag /fix

The Domain Controller’s IP can be easily changed via the built-in command tool known as Command Prompt or cmd. All you need to do is input a few commands in it, and the tool will do the job for you.

Is a domain controller the same as Active Directory?

We won’t give you complex terminologies as we want you to understand terms easily. An Active Directory is like a database. It stores information of users and computers as objects.

On the other hand, the domain controller is a service that runs Active Directory and uses the data stored by the AD for authentication and giving access to the user. Notably, a DC or domain controller manages the security policies of Windows NT or Windows Server.

So, the easiest way to remember the difference between Active Directory and DC is that Active Directory handles your identity and security access, on the flip side the Domain Controllers authenticate your authority.

That is it from us in this guide. We hope that we gave you the complete information on how you can change the IP of the domain controller. Let us know in the comments below if you come across any issues while following the above steps.

More about the topics: IP address