[Samba] Removing and recreating DNS from scratch.

Alex Matthews qoole.samba at lillimoth.com
Thu Apr 4 06:14:22 MDT 2013

Hi all!

I want to recreate my DNS records from scratch and I am unable to find a 
way to do so.

I have tried removing the DC=FORESTDNSZONES and DC=DOMAINDNSZONES ldb 
files and recreating them with samba_upgradedns but I get the following 

Creating DNS partitions
Traceback (most recent call last):
   File "/usr/sbin/samba_upgradedns", line 356, in <module>
   File "/usr/lib/python2.7/site-packages/samba/provision/sambadns.py", 
line 947, in create_dns_partitions
     names.configdn, names.serverdn)
   File "/usr/lib/python2.7/site-packages/samba/provision/sambadns.py", 
line 239, in setup_dns_partitions
     "SECDESC"      : b64encode(descriptor)
   File "/usr/lib/python2.7/site-packages/samba/provision/common.py", 
line 50, in setup_add_ldif
     ldb.add_ldif(data, controls)
   File "/usr/lib/python2.7/site-packages/samba/__init__.py", line 224, 
in add_ldif
     self.add(msg, controls)
_ldb.LdbError: (68, 'ldb_wait: Entry already exists (68)')

I have tried with both SAMBA_INTERNAL and BIND9_DLZ both give me the 
same error.

Is there any known method to achieve this?



More information about the samba mailing list