[Samba] Huge DNS files for small Samba AD domain. How to cleanup?
mi.lists at alma.ch
Sun Aug 27 12:31:39 UTC 2023
We have a small Samba AD server with around 20 users and 70 machines
(including phones, printers, etc.).
When using |dig -t AXFR| to list the entire domain, there are 60 records
(SOA, NS, A, and SRV records).
But the |DC=DOMAINDNSZONES...| .ldb files under
|/var/lib/samba/bind-dns/dns/sam.ldb.d/|, are *over 600 MB* and keep
And |samba-tool dbcheck --cross-ncs| shows "Checking 123859 objects" !
It only lists a few as "expired tombstone". Running "samba-tool domain
tombstones expunge" says it removed 51 objects, so that doesn't fix it.
How can I cleanup these |DC=DOMAINDNSZONES...| .ldb files? And/or what
might be wrong in our setup to cause these files to grow indefinitely?
The server runs Debian 11.7 with Samba 4.13.13.
(I also posted more details in this question on Stackexchange:
https://serverfault.com/questions/1137639 several weeks ago, but there
has been no reply so far)
Thanks for any help
More information about the samba