Because of some disaster I have lost my primary domain controller and thanks god that I had secondary domain controller so I could provide the service to the computer and save my data. After that I have seized the all 5 FSMO roles to the secondary domain controller and deleted the crashed primary domain controller from Active directory and site and services. Now I want to have another domain controller to have security in future . So my question is can I keep the same IP and Host name as crashed domain controller and join the domain and promote it as domain controller or I do need to use another domain name and IP. Thank you guys for the help.
Any tips will be helpful for me
You can use the same name and IP but as suggested you will need to clean up AD first and remove references to the failed DC.
you can use NTDSUTIL to do this. NTDSUTIL.exe allows you to do a metadata clean up. this way you don't have to go through and manually delete stuff. use the link below, it as all the information you need.
https://technet.microsoft.com/en-us/library/cc816907(v=ws.10).aspx
You can use the same name and IP address, but before you build the new domain controller, you should go through both DNS and ADSIEdit and make sure (carefully) to remove any references to the old name and IP address.
Normally when you demote a domain controller and remove any computer from a domain, the AD cleanup is done for you. DNS doesn't always catch when a computer disappears for any reason so sometimes has to be manually cleaned up no matter what happened to a computer.
In DNS, you can pretty safely remove anything with the name or the IP address of the old DC. In ADSIEdit, you should be a bit more cautious. At least make sure you have an idea of what an AD entry is for before you manually delete it.