Server 2019 PDC and changing IP and name

Bruce Ringler 61 Reputation points
2021-03-02T23:35:51.047+00:00

Hello I have a standalone Server 2019 PDC, nothing else, but I need to change the IP and name, before adding servers and desktops. If I want to change the server IP is there anything else I need to change?

I have posted this before with changing IP only, but now I need to change the hostname

Thanks Bruce

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,613 questions
{count} votes

Accepted answer
  1. Daisy Zhou 21,361 Reputation points Microsoft Vendor
    2021-03-03T05:29:45.277+00:00

    Hello @Bruce Ringler ,

    Thank you for posting here.

    We suggest we do not change the IP address and name of DC directly. However, if you just rename one, or the previous DC name will not be used again, you can also rename DC. Renaming the DC directly may cause risks.

    For more information about rename DC directly, you can refer to the link below.
    Rename a Domain Controller Using Netdom
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc816601(v=ws.10)?redirectedfrom=MSDN

    You can use this procedure to update the File Replication Service (FRS) or Distributed File System (DFS) Replication member object after you rename a domain controller. This object must be updated with the new domain controller name so that the domain controller can replicate SYSVOL.

    Update the FRS or DFS Replication Member Object
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc794759%28v%3dws.10%29

    As you mentioned, the way below is suggested steps.

    1.Take one of the 6 stand-alone servers 2019, IP and Name this server, than promote it to a PDC
    2.Then at the PDC I want to rename and re-IP, remove roles and feature so it become a stand alone server.

    For example:

    Assume 2019 PDC : IP address 1, DC name1
    Another stand-alone server 2016 : IP address 2, DC name2

    1.Add a stand-alone server 2016 to the domain.
    2.Add AD DS and DNS roles.
    3.Promote it as DC (also GC).
    4.Transfer FSMO roles from PDC 2019 to new DC 2016. Now the 2016 DC is PDC.
    5.If new DC works fine and AD replication works properly.
    6.Demote the DC 2019 to member server.
    7.Disjoin this 2019 DC from the domain.
    8.Change the IP address of 2019 server from IP address 1, DC name1 to IP address 3, DC name3 you want.
    9.Readd this 2019 server to domain and promote is as DC (also GC).
    10.Transfer FSMO roles from DC 2016 to DC 2019 again.
    11.Demote DC 2016 if needed.

    Tip: In one domain, having multiple DC's is a best practice standard. You should always have at least 2 DC's to safe guard against one going down. If all you had was one, and it went down, there'd be nothing for your objects to authenticate to. It's very common for environments to have more than 2 DC's as well.

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-03-02T23:42:09.62+00:00

    You can but its risky, especially with a single domain controller. The preferred and much safer method would be to stand up new one with the desired name, patch fully, join existing domain, promo it, transfer roles over, decommission demote old one.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Bruce Ringler 61 Reputation points
    2021-03-02T23:49:34.48+00:00

    Thanks

    I have a single Server 2019 PDC and 6 stand-alone servers not in the domain, and not connected by a switch, "literally" 7 stand-alone servers

    1. Take one of the 6 stand-alone servers 2019, IP and Name this server, than promote it to a PDC
    2. Then at the PDC I want to rename and re-IP, remove roles and feature so it become a stand alone server

    Bruce

    0 comments No comments

  3. Anonymous
    2021-03-03T00:13:33.697+00:00

    Seems backwards. I don't know why one would do it this way but none the less from an elevated PowerShell prompt

    Rename-Computer -NewName "Server001" -DomainCredential Domain01\Admin01 -Restart

    or from an elevated cmd.exe
    netdom computername ServerOldName /add:ServerNewName
    netdom computername ServerOldName /makeprimary:ServerNewName

    then after reboot
    netdom computername ServerNewName /remove:ServerOldName

    then do ipconfig /flushdns, ipconfig /registerdns, restart the netlogon service.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments