Rename a domain controller.
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc816601(v=ws.10)?redirectedfrom=MSDN
Changing a domain name
https://www.rebeladmin.com/2015/05/step-by-step-guide-to-rename-active-directory-domain-name/
Both are somewhat risky moves, assuming all goes well users and groups will be unchanged.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--