[Samba] "Empty" DNS entry, no A record, can't delete or update

Georg Bretschneider georg+mailinglists.samba at georgb.de
Thu Sep 5 03:04:52 MDT 2013


Hi Thomas,

same result as with 'samba-tool dns add'. I have to delete some kind of record, but there is non really. Just some meta-entry.

I finally found the location where everything is stored and used 'tdbtool' to edit the database.
Somehow for said hostA there were two entries, each with a different record number, in the database, one not so complete. I deleted both and were then able to re-add an A record by GUI or 'samba-tool'.

cd [install prefix]/samba/private/sam.ldb.d/
tdbtool -H tdb://DC=DOMAINDNSZONES,DC=DOMAIN,DC=LOCAL.ldb

It uses 'vi' to edit the files.


Best regards
Georg

Am 05.09.2013 um 09:38 schrieb Thomas Zeitinger <thomas.zeitinger at it2.at>:

> Hi Georg,
> 
> On 2013-09-04 17:24, Georg Bretschneider wrote:
>> root:~# samba-tool dns query pdc.domain.local zoneA hostA ALL -Uadministrator
>>  Name=, Records=0, Children=0
>> 
>> root:~# samba-tool dns query pdc.domain.local zoneA @ ALL -Uadministrator
>>  [a lot of correct host entries with their corresponding A records]
>>  Name=hostA, Records=0, Children=0 # notice the missing second line. Example: A: 192.168.0.100 (flags=f0, serial=11, ttl=0)
>>  [more host entries]
>> 
>> root:~# samba-tool dns add pdc.domain.local zoneA hostA A 192.168.0.100 -Uadministrator
>> ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
>>  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
>>    return self.run(*args, **kwargs)
>>  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 1067, in run
>>    0, server, zone, name, add_rec_buf, None)
>> 
>> I don't know how to get rid of this.
>> 
>> Any suggestions?
>> 
> 
> What about "samba-tool dns delete"?
> 
> Best regards
> 
> -- 
> Thomas Zeitinger
> Kundenbetreuung
> 
> IT-Quadrat   EDV Dienstleistungs- und Handels GmbH
> Krongasse 8/2 A-1050 Wien
> Tel: +43 (1) 311 44 00 - 10
> Fax: +43 (1) 311 44 00 - 90
> Thomas.Zeitinger at it2.at
> www.it2.at
> 
> FN 287345t
> UID ATU63123113
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list