code, coding, computer

How to convert DNS zone into AD-integrated

How to convert secondary DNS zone into AD-integrated zone

If you are looking for a guide showing how to convert DNS zone (secondary one), into AD-Integrated zone, here’s a step-by-step guide showing how to do that in an easy way.

Table of Content

Steps how to convert DNS zone

how to convert dns zone

1 – Export the zone information from the SOA (the authoritative dns server for the zone, which can be any dns server in an ad-integrated zone):

DnsCmd dc01.contoso.local /ZoneExport contoso.local contoso.local.copy.bak

This will export the zone DNS from the SOA, to the folder %SystemRoot%\System32\DNS\

This first step is to make sure you will have a reliable backup of the zone you will convert.

2 – Now, back to server which has the secondary zone (I suppose you are connected in a different domain too. Be aware all procedure below must be done in the target servers of the the target domain, here in this example domainAZ , not in the source domain contoso.local)

Convert the secondary zone (contoso.local) in one of the DNS servers of domainAZ.local, to a primary zone:

DnsCmd dc12.domainAZ.local /ZoneResetType contoso.local /Primary /File contoso.local.dns

This command will convert it to a primary zone and create a dns file at %SystemRoot%\System32\DNS\

3 – Now, you must delete the secondary zone from all other DNS servers in the target domain domainAZ.local

DnsCmd dc18.domainAZ.local /ZoneDelete contoso.local

DnsCmd dc39.domainAZ.local /ZoneDelete contoso.local

4 – Next, back to DNS server which has the primary zone (the only one at this moment, on the target domain domainAZ.local ok?), and remove all old NS records.

At this part, you will see the name of DNS servers from the source domain contoso.local 

As this zone is no longer updated from DNS servers of contoso.local, and the DNS servers of domainAZ.local will become the authoritative one, you can delete it using the command:

dnscmd dc12.domainAZ.local /RecordDelete contoso.local @ NS dc01.contoso.local

5 – Finally, convert the now primary zone in to an AD-integrated zone:

DnsCmd dc12.domainAZ.local /ZoneResetType contoso.local /DsPrimary

The zone will be now replicated to all domain controllers in domainAZ.local. If you want accelerate this process, use the following command: repadmin /syncall /AdeP

Still need help to convert DNS zone?

Running out of ideas and time on how to convert DNS zone in your environment?

Please, get in touch with me, I will be happy to provide a quick resolution for you on how to fix GPO with at a fair price.

Name
Email
Message
The form has been submitted successfully!
There has been some error while submitting the form. Please verify all form fields again.

References

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top