How to rename your single active directory domain
sumber : http://www.rickygao.com/how-to-rename-your-single-active-directory-domain/
Last time I reposted the TrainSingal post [RT]Choosing an Internal Top Level Domain Name, although I didn’t follow the bad behavior by using .local for my own active directory domain, but I was using rickygao.com for my internal lab domain which is not follow the best practice as well.
To practice myself, I decided to rename my domain from rickygao.com to lab.rickygao.com, keep using the same NetBIOS name rickygao, so the user will still using the same login rickygao\username to login, nothing changed from the user side
I’m in a signle domain structure environment, so rename for me is not so complicated, if you have a complicated architect, you should read below article carefully
For a single active directory domain, you can just follow my steps as below to rename your domain
1. Login into a member server in the domain, can be any server, has to be non domain controller, you can find out more details here: http://technet.microsoft.com/en-us/library/cc816608%28v=ws.10%29.aspx
Add the “Active Directory Domain Services” role, do NOT configure anything after the role has been added, we just need to get the domain rename tool called “rendom.exe” and “gpfixup.exe”
2. Create a new DNS Zone for the new domain
Type in the new domain name, I’m going to use lab.rickygao.com instead rickygao.com for the best practice perspective
If you are not sure of above settings, you can right click on the original DNS zone rickygao.com, select properties, and check all of the existing settings.
3. Rename the domain
use the rendom /list to generate the current domain structure
Edit the file “domainlist.xml’
As you can see I’m running in a very simple domain, just use control+H to replace all my rickygao.com to lab.rickygao.com in the “domainlist.xml’, keep the “NetBiodName” the same since I want to use the same login for the user like rickygao\username after the domain renamed.
Verify and upload the new domain name
Prepare the new domain name
Execute the change
Now the domain controller will reboot
gpfixup /olddns:rickygao.com /newdns:lab.rickygao.com
gpfixup /oldnb:rickygao /newnb:rickygao
Since I’m keep using the same NetBiod name for the new domain name, so I got the above error which is acceptable for me.
Rename the domain controller itself
netdom computername hyperv1.rickygao.com /add:hyperv1.lab.rickygao.com
netdom computername hyperv1.rickygao.com /makeprimary:hyperv1.lab.rickygao.com
Reboot the domain controller, unfortunately you will need to do the same thing for all of your domain controller one by one
Now the domain controller is ready, it’s time to clean up the domain controller
4. Delete the old domain DNS zone
Done, you need to reboot every single member server to get the change take effect.
You may also need to take some additional steps to fix your environment, depends on your environment.