[Samba] bind9 samba ac dc issue

Rowland Penny rpenny at samba.org
Mon Jan 24 13:39:33 UTC 2022


On Mon, 2022-01-24 at 13:02 +0100, Patrik via samba wrote:
> hello!
> 
> how are you? wish you a good year!
> 
> i have a problem with the DNS. I get invalid IPv6 addresses.
> When my dynamic IPv6 changes, it does not flush the old addresses.
> 
> smb config:
> [global]
> 
>         bind interfaces only = yes
>         interfaces = fd00:ffff:1978:0:eeaa:a0ff:fe1b:4d84%enp2s0/64
> 192.168.78.20
>         netbios name = SERVER
>         realm = P3X-DC.PATRIKX3.COM
>         server services = -dns
>         dns forwarder = 8.8.8.8

You do not need the dns forwarder line if using Bind9

>         workgroup = P3X-DC
>         allow insecure wide links = Yes
>         unix extensions = no

Why have you set those two lines ?

>         server role = active directory domain controller
>         idmap_ldb:use rfc2307 = yes
>         comment =

Again, why have you set that line ?
Not that any of the above has anything to do with your problem.


>         template shell = /bin/bash
>         template homedir = /home/%U
> 
> When IPv6 changes:
> sudo sh -c "rm /var/lib/samba/private/dns_update_cache || true &&
> systemctl
> reset-failed bind9 && service bind9 restart && samba_dnsupdate --
> verbose &&
> service bind9 restart

Is there some reason why you are using IPv6 internally ?
However using it is your decision.

> 
> 
> 
> *this makes the login slow. how can i purge the old records? *

You can remove them with samba-tool.
What is more important is how they are being created in the first
place.

It will probably help if you could post your Bind9 conf files,
named.conf etc.

Rowland





More information about the samba mailing list