Samba 4.10 dnsupdate fails due to missing dependency
Following update from Samba 4.9.5 to 4.10.0, samba dnsupdate fails.
Command: samba_dnsupdate --verbose --all-names
Traceback (most recent call last): File "/usr/sbin/samba_dnsupdate", line 56, in import dns.resolver ModuleNotFoundError: No module named 'dns'
Steps to reproduce:
- Install Samba and configure as AD domain controller
- Run samba_dnsupdate
Fix is simple: install 'py3-dnspython' (i.e. apk add py3-dnspython) and restart samba. No error occurs.
So it's just a missing dependency, probably only applicable to Samba AD installations.