[Samba] Accidental zone deletion

Andrew Bartlett abartlet at samba.org
Tue Jun 22 05:47:29 UTC 2021

On Tue, 2021-06-22 at 05:29 +0000, Chris Puttick via samba wrote:
> Hi 
> We have a situation where an MS admin used the AD utilities to tidy
> up an neighbouring (MS-based) domain but was attached to the wrong DC
> and deleted the wrongdomain.local zone file (which is apparently a
> bit of a thing in MS circles); by the time said admin realised the
> deletion had replicated across DCs on all sites. How do we recreate
> it, in partiular the contents? Hoping the answer is "just manually
> create the zone and it'll repopulate". 
> Any suggestions welcomed... 

I assume of course you mean the zone in a Samba AD DC, not a simple
.zone file.

This has happened, and yes, I do think we should prevent it at the
database level, as nobody ever really means to do that.  Last time that
happened we helped a client jury-rig up a backup of the sam.ldb into
BIND9-DLZ (so only DNS used the old data), allowing service to somewhat
continue while things were fixed back up.

However, I'm sorry to say it won't just be regenerated, while Samba
will try and re-register itself every now and then, I wouldn't count on
it getting back the way you found it fast.

How are your backups?

Andrew Bartlett

Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT   https://catalyst.net.nz/services/samba

Samba Development and Support, Catalyst IT - Expert Open Source

More information about the samba mailing list