Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it safe to delete these two crossRef objects in ADSIEdit? This is in a Win2K8 environment where the DCs are running DNS and these two zones are missing.

I would like to do this because I cannot create any new zones, forward or reverse. When I attempt to do so, the error I get is

"The zone cannot be created. There was a server failure."

I also see Event ID 4512 repeatedly in the DNS logs with the message

The DNS server was unable to create the built-in directory partition The error was 9906.

In a test environment, I was able to delete them safely and upon restarting netlogon and the DNS services the zones/crossRef objects were recreated.

Would deleting them in ADSIEdit be the same as deleting the replication contexts via ntdsutil?

Is there a way to back them up in case something goes wrong?

Thank you.


The result of:

ldifde -f con -d CN=0e4820e2-35e2-4fcf-bae9-789ca2003a


Connecting to ""
Logging in as current user using SSPI
Exporting directory to file con
Searching for entries...
Writing out entries.dn: CN=0e4820e2-35e2-4fcf-bae9-789ca2003a6b,CN=Partitions,CN
changetype: add
objectClass: top
objectClass: crossRef
cn: 0e4820e2-35e2-4fcf-bae9-789ca2003a6b
instanceType: 4
whenCreated: 20071129065500.0Z
whenChanged: 20110702063659.0Z
nCName: DC=ForestDnsZones,DC=sub,DC=domain,DC=com
uSNCreated: 6080
uSNChanged: 8091
showInAdvancedViewOnly: TRUE
Enabled: FALSE
name: 0e4820e2-35e2-4fcf-bae9-789ca2003a6b
objectGUID:: RIDFRdDkrUO7JUySD8iRig==
systemFlags: 5
dSCorePropagationData: 16010101000000.0Z
 CN=NTDS Settings,CN=dc2,CN=Servers,CN=My-Site,CN=Sites,CN=Configuration,DC

1 entries exported

The command has completed successfully

The error I get when trying to establish new naming context for ForestDNSZones and DomainDNSZones:

enter image description here

And for the sake of clarity, a screenshot of the crossRef objects:

enter image description here

share|improve this question
up vote 2 down vote accepted

OK so it seems you need a lot of guidance on this than I planned. Sorry but I wasn't envisaging a long chat about your issue but merely a couple of posts to steer you in right direction. In case it wasnt clear, I was merely offering my thoughts on what I would do if I were you. I expect you know the ramifications of what is been done here. I also hope this helps resolve your issue. So here is the final updated version of my reply.

OK so personally, I'd backup the AD before attempting to delete the crossref. You need a backup of at least one DC that holds a writable of any partition you wish to restore. If you aren't sure who hosts what partition, backup all DCs.

You have already tried this process in an environment. So you know whats involved. You can use any tool that is capable of deleting the crossref to get rid of the partitions. I have deleted crossrefs using adsiedit.msc before and expect you can delete forestdnszones and domaindnszones with it. You will lose data if you go down this route which in the worst case scenario may require domain/forest restores and other application specific recovery procedures. Its unlikely, but possible. So lets get that disclaimer out of the way.

Else you can use ntdsutil as you seem to be aware to delete these partitions. "ntdsutil - partition management - delete nc " does crossref removal. When crossref is deleted, the DCs replicate the change in and delete the partitions from their database. Data is indeed lost in this process so only do it if you are sure.

Note as you say one DC is in msDS-NC-Replica-Locations, check to see what zones you have by using adsiedit to connect to that DC and see what is stored in forestdnszones and domaindnszones. Navigate the partitions and see whats under MicrosoftDNS container for list of zones. Deleting crossref will delete all zone data on any server that properly hosts the application partitions.

Your screenshots and comments imply inability to see if there are any zones. In that case unless your zones are elsewhere I expect major DNS issues to be present. Either you are doing this wrong when checking or your zones arent in domaindnszones and forestdnszones at all. Just remember, if there are any, you will lose them when the crossref is deleted.

Its possible that you have some other zoneshosted in these partitions. Check your DNS/DCs in dnsmgmt.msc to see what zones they have and open the properties of the zone and check replication scope top see if it matches the partitions/crossref you are about to delete. AS each DNS server stores config in registry for zones you can examine HKLM\Software\microsoft\windows nt\currentversion\dns server\zones on each dc/dns for each zone to see where the zone is loaded from. If you have static records or any records of interest check out dnscmd as it has the /zoneexport option to export zone data as a file based zonefile. You can later use these backups to create zones again and convert them to dsintegrated too.

You can recreate partitions once deleted with dnscmd createbuiltindirectorypartitions switch as per .

You could also create your own application partitions with different names like DC=MyDnsPartition and store the zones in them and choose all DCs of forest or all DCs of domain or a custom pick and choose list of DCs as members of the application partition to control where the zones replicate. The ForestDNSZones and DomainDNSZones are default application partitions as it meets most admin's needs. You don't have to use them. You can make your own and that flexibility can be used as an option if you cant fix the crossref and bring it back to default state.

something like the following executed on a DC/DNS like DC1 will create the partition and enlist. You will likely need enterprise admin rights. I havent checked.

dnscmd /createdirectorypartition MyDNSApp

Then add other DCs as a replica destination by enlisting.

dnscmd /enlistdirectorypartition MyDNSApp

If you do the above on DC2, You will find a partition called DC=MyDNSApp eventually replicated from DC1 to DC2. This obviously assumes you have site links and replica topology configuration allowing you to replicate from these sources. I dont want to go into that here as its a big topic.

Once partitions are deleted, you will need to create any zones as necessary. If you had zones to represent AD domains in these partitions you need to recreate zones. I would temporarily point all DC in forest at one DC where you first created the partitions and then the zones. Then either restart netlogon or use "nltest /dsregdns" against each dc to get the netlogon service to re-register records. This could take some time. I have also on occasion when dcs didnt register records quickly enough, created a blank zone (non ad integraed) to represent the domain, copied all the content from netlogon.dns of all DCs as necessary to the file in c:\windows\system32\dns, added A records for the DCs as necessary and reloaded zone from file in dnsmgmt.msc console and then converted it to AD integrated to replicate out. I am not saying you will need to do this. I am saying it to give you an idea of the work you may need to do if things go wrong.

Hopefully this all makes sense. Good luck!

share|improve this answer
Thank you for your suggestions. The msDS-NC-Replica-Locations attribute references the 2nd DC we have. Do I have to delete the replica set on both DCs? If I were to create custom partitions, wouldn't they need to have names other than ForesDNSZones and DomainDNSZones? Wouldn't that be a problem? I've never had to do that before. – Bourne Jul 30 '11 at 5:58
Yes you'd need custom names other than those default names. It wont be a problem. You delete crossref on domain naming master only. That causes all servers that host the partition to no longer host it and delete that partition from their database. You'd only do that if you are certain there is no data you want to salvage from the partition. – maweeras Jul 30 '11 at 7:26
Would the GUID be that of the crossRef object (under its attributes) or is it of the ForestDNSZone zone itself (as you see in the general view? I'm assuming the GUID that belongs to the zone. I've posted the output in my updated answer. I also tried establishing a new naming context using both ForestDNSZones and DomainDNSZones by right clicking under partitions > New Connection to Naming Context and I get an error for both. I'm assuming they are not storing any data at all then. Correct? Error included in my updated answer as well. – Bourne Jul 30 '11 at 17:06
Yes, I used ldp.exe on dc2. Browsed the tree for CN=Configuration,DC=sub,DC=domain,DC=com and under the crossRef objects for both ForestDNSZones and DomainDNSZones says "No children." – Bourne Jul 30 '11 at 17:21
Did you bind? You need to logon before you see anything. I also assume your screenshots when attempting to view the forestdnszones in adsiedit were from dc2. – maweeras Jul 30 '11 at 19:00

I might look into your domain naming master role and see if you can see any problems with that.

c:\> net helpmsg 9906

The application directory partition operation failed. The domain controller hold
ing the domain naming master role is down or unable to service the request or is
 not running Windows Server 2003.
share|improve this answer
Thank you guys. The domain naming master is just fine. The problem is that the ForestDNSZones crossRef object has a non-existent domain as its dnsRoot. Multiple domains have been created and deleted in this environment before my time. I am fairly confident that the problem lies there which is why I want to recreate the DNS partition so that the correct dnsRoot shows up. I cannot modify its value in ADSIEdit which is also why recreating it seems to be the only choice. I have run all the dcdiag tests and they all pass so I know it's not an issue with the Domain Naming Master. – Bourne Jul 29 '11 at 5:16
Any idea if it is safe to delete it? This article (…) basically shows how to restore either of the partitions. I don't particularly care about the client records right now as I can force them to re register with DNS. But I just want the AD records to be recreated such as SRV, NS etc. Any further suggestions? – Bourne Jul 29 '11 at 6:11

Make sure your Domain Naming Master FSMO role owner is up and running. You can find who owns this role by opening the AD Domains and Trusts mmc and right clicking AD domains and Trusts. Select "Operations Master". It will tell you what server holds that role. You can also use that same method to transfer the role to another server.

share|improve this answer
Thank you Cheekaleak. I added my comments below. – Bourne Jul 29 '11 at 6:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.