Nope, but that was not the problem...
root at samba01:~# dpkg -l | grep python-dns
root at samba01:~# apt-get install python-dns
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-dns
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.7 kB of archives.
After this operation, 135 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf python-dns
all 2.3.6-3 [28.7 kB]
Fetched 28.7 kB in 0s (81.3 kB/s)
Selecting previously unselected package python-dns.
(Reading database ... 24304 files and directories currently installed.)
Preparing to unpack .../python-dns_2.3.6-3_all.deb ...
Unpacking python-dns (2.3.6-3) ...
Setting up python-dns (2.3.6-3) ...
root at samba01:~# /usr/sbin/samba_dnsupdate --help
Traceback (most recent call last):
File "/usr/sbin/samba_dnsupdate", line 52, in <module>
samba.ensure_third_party_module("dns", "dnspython")
File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 359,
in ensure_third_party_module
namespace="samba.third_party")
File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 344,
in import_bundled_package
"%s.%s" % (namespace, modulename), fromlist=[namespace])
ImportError: No module named dns
root at samba01:~#
-----Ursprüngliche Nachricht-----
Von: Denis Cardon [mailto:dcardon at tranquil.it]
Gesendet: Freitag, 3. November 2017 12:50
An: Dirk Laurenz <samba at laurenz.ws>; samba at lists.samba.org
Betreff: Re: [Samba] dns module not found
Hi Dirk,
> i have three samba dc's each running with Version 4.7 on raspbian
> strech
>
>
>
> On one oft hem i have now this problem and i don't know why?
>
> I'm not sure what caused the problem. because it worked before.
>
>
>
> root at samba01:~# /usr/sbin/samba_dnsupdate --help
>
> Traceback (most recent call last):
>
> File "/usr/sbin/samba_dnsupdate", line 52, in <module>
>
> samba.ensure_third_party_module("dns", "dnspython")
>
> File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line
359,
> in ensure_third_party_module
>
> namespace="samba.third_party")
>
> File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line
344,
> in import_bundled_package
>
> "%s.%s" % (namespace, modulename), fromlist=[namespace])
>
> ImportError: No module named dns
do you have python-dns package installed?
Cheers,
Denis
>
--
Denis Cardon
Tranquil IT Systems
Les Espaces Jules Verne, bâtiment A
12 avenue Jules Verne
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.55
http://www.tranquil-it-systems.fr