How to change the IP Address of a Domain Controller?

Overview

The IP of a domain controller is typically statically allotted to the server because of its importance, or to avoid any amendment it’s distributed via DHCP through a lease reservation.

Sometimes it’s necessary to vary the IP allotted to a domain controller, particularly if you would like to vary the network address of its data system.
Here, we’ll take Windows Server 2012 R2, as a domain controller and additionally DNS, all for the domain name checkwhois.com.

IP address changing

We will begin by changing the IP address, however before that, we’ll make sure the domain controller is in good state with dcdiag. Open a command prompt as an Administrator and run this (replace SRV-AD01 with the name of your DC).

| Dcdiag / s: SRV-AD01

Make sure to check that the tests are successful and then go on! you’ll amendment the IP address of the server, going into the settings of the network card, via netsh or via PowerShell.

New IP address saving

A domain depends on the utilization of a DNS server for name resolution, client use records from that server to contact your domain controller. Therefore, it’s imperative to update the DNS records as per the DC.

On the DC, first, clear the local DNS cache and initiate the registration within the DNS:

| Ipconfig / flushdns & ipconfig / registerdns

Finally, a correction command is executed via dcdiag, particularly for correcting Service Principle Name (SPN) records. This corresponds to some reasonably alias within the “Kerberos” world within the same manner that CNAME is employed to form an alias of DNS record.

| Dcdiag / fix

By the way, make sure the varied tests passed are OK. don’t hesitate to perform name resolution tests with nslookup.

To finish some further information:

– The DNS cache of client computers and member servers should be flush (ipconfig / flushdns)

– In your DHCP server configuration Change the DNS address

– Between your different name servers Check DNS records replication, if you have more than one

– Check the support for the new IP address in Active Directory Sites and Services

– Don’t forget to form client computers/servers points to the new IP address of the DC and not the previous one.

Note: It is preferable to test the procedure before any modification of this type in a pre-production environment.