You can follow along here to rename the domain, but note the compatibility if you happen to have exchange servers.
https://www.rebeladmin.com/2015/05/step-by-step-guide-to-rename-active-directory-domain-name/
--please don't forget to upvote
and Accept as answer
if the reply is helpful--