Hi Carlos,
we also have enabled this. However, I think there is a Bug where
sometimes Samba creates the DNS Entry as static sometimes as dynamic.
The static ones are never scavenged.
See this Bug (https://bugzilla.samba.org/show_bug.cgi?id=12451).
Regards
Christian
On 25.07.23 23:31, Carlos Jesus via samba wrote:> Hi all!
> Has anyone implemented dns scavenging on samba? What is the status of this?
> I know that samba 4.9 and then 4.15 have introduced and enhanced this
> feature and I know about bug12451.
>
> samba-tool dns zoneoptions --aging=1
>
> seems to work.
>
> However RSAT shows all my records as static and they just keep piling
> up. Am I missing something?
>
>
> I have 2 DC's on 4.17.7 with bind 9.16.37 with dynamic updates. All
> running on Bullseye
>
>
> Best regards!
>
>
> My sanitized smb.conf, Global Section, just in case, is rather
> minimal. winbind enum are there for testing.
>
> # Global parameters
> [global]
> realm = SAMDOM
> workgroup = SAMDOM
> netbios name = DC1
> server role = active directory domain controller
> idmap_ldb:use rfc2307 = yes
> log level = 1 auth_json_audit:2@/var/log/samba/auth.log
> sam:2@/var/log/samba/sam.log
> log file = /var/log/samba/samba.log
>
> server services = -dns
> template shell = /bin/bash
> template homedir = /home/%U
> winbind use default domain = yes
> winbind enum users = yes
> winbind enum groups = yes
> dns zone scavenging = yes
>
>
> #Disable Printing
> load printers = no
> printing = bsd
> printcap name = /dev/null
> disable spoolss = yes