[Samba] samba-tool dns serverinfo command throws error

James Atwell james.atwell365 at gmail.com
Fri May 17 16:19:21 UTC 2019


Hello,

      I'm using the internal DNS server and when running the command 
'samba-tool dns serverinfo dc1 -U administrator' I get the following output.

@dc1:~# samba-tool dns serverinfo dc1.domain.local -U administrator
Password for [DOMAIN\administrator]:
   dwVersion                   : 0xece0205
   fBootMethod                 : DNS_BOOT_METHOD_DIRECTORY
   fAdminConfigured            : FALSE
   fAllowUpdate                : TRUE
   fDsAvailable                : TRUE
   pszServerName               : DC1.domain.local
   pszDsContainer              : 
CN=MicrosoftDNS,DC=DomainDnsZones,DC=domain,DC=local
ERROR(<class 'TypeError'>): uncaught exception - a bytes-like object is 
required, not 'str'
   File 
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/__init__.py", 
line 185, in _run
     return self.run(*args, **kwargs)
   File 
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/dns.py", line 
564, in run
     print_serverinfo(self.outf, typeid, res)
   File 
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/dns.py", line 
225, in print_serverinfo
     dns_addr_array_string(serverinfo.aipServerAddrs))
   File 
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/dns.py", line 
157, in dns_addr_array_string
     addr = inet_ntop(AF_INET, x)

I'm not experiencing any DNS issues so I believe this may be a bug with 
the move to python3 Am I correct?

Ubuntu 16.04, samba 4.10.3.

Thanks.

-James





More information about the samba mailing list