To rename a DC with the name from SERVER-DC01 in the domain.local domain to SERVER-DC02 follow the next steps:
Open Command Prompt as an Administrator and type:
NETDOM computername SERVER-DC01.domain.local /add:SERVER-DC02.domain.local
Ensure the computer account updates and DNS registrations are completed, then type:
NETDOM computername SERVER-DC01.domain.local /makeprimary:SERVER-DC02.domain.local
Restart the computer.
From the command prompt, type:
NETDOM computername SERVER-DC02.domain.local /remove:SERVER-DC01.domain.local
Make sure that the changes have successfully been replicated to all remaining DCs.