Hello
Thank you for posting in Q&A forum.
If the old DC has been removed, you can clean the metadata first and then promote a new dc with the same name and Ip.
Clean up AD DS server metadata | Microsoft Learn
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.