Bug 11386 - samba-tool dns error
Summary: samba-tool dns error
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: DNS server (internal) (show other bugs)
Version: 4.2.1
Hardware: x86 Linux
: P5 major (vote)
Target Milestone: ---
Assignee: Kai Blin
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-05 23:07 UTC by spidlulic
Modified: 2019-05-23 23:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spidlulic 2015-07-05 23:07:38 UTC
Hi, may I'm bad, but for me, all the "samba-tool dns" doesn't works .. 
And I don't understand the error return ..

# samba-tool dns zonelist SERVER
ERROR(runtime): uncaught exception - (-1073741772, 'The object name is not found.')
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 809, in run
    dns_conn = dns_connect(server, self.lp, self.creds)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 40, in dns_connect
    dns_conn = dnsserver.dnsserver(binding_str, lp, creds)


Thanks,
Lucas.
Comment 1 Douglas Bagnall 2019-05-23 23:00:02 UTC
This looks like a reporting bug in our tools, which was somewhat fixed by commit 5701b99b5c134ee6ffffa0f34c2797c9c814d280 "samba-tool dns: Trap on conneciton errors and give useful info" (2015-10-20).

Lucas, your original problem with

# samba-tool dns zonelist SERVER

is that "SERVER" is not the name of an existing server, according to DNS. The fix was to convey this message better.