Package: unbound
Version: 1.7.3-1
Severity: normal
Dear Maintainer,
* What led up to the situation?
trying to implement an unbound python module (python code executed
while the unbound server is handling requests and responses, see the
pythonmod/ in unbound's source code).
* What exactly did you do (or not do) that was effective (or
ineffective)?
starting with the log.py example (included in the unbound's source
code), modified the print functions to make it work with Python3, and
added a single print() to illustrate the problem:
print("=> %s"%q.qname_str)
When a client requests a resolution, the ubound server reports an exception
where it should not.
* What was the outcome of this action?
the exception reported is:
Traceback (most recent call last):
File "/etc/unbound/unbound.conf.d/log.py", line 120, in operate
logDnsMsg(qstate)
File "/etc/unbound/unbound.conf.d/log.py", line 70, in logDnsMsg
print("=> %s"%q.qname_str)
File "/usr/lib/python3/dist-packages/unboundmodule.py", line 132, in
_get_qname_str
def _get_qname_str(self): return dnameAsStr(self.qname)
TypeError: in method 'dnameAsStr', argument 1 of type 'char const *'
* What outcome did you expect instead?
the basic example should have worked, I wheched and it works fine
(exactly the same code) with unbound as packaged by CentOS. Same bug
with the unbound packaged in stretch though. Google did not help much
here.
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.17.17-100.fc27.x86_64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect (in a Docker container)
Versions of packages unbound depends on:
ii adduser 3.117
ii dns-root-data 2018013001
ii libc6 2.27-4
ii libevent-2.1-6 2.1.8-stable-4
ii libfstrm0 0.3.0-1+b1
ii libprotobuf-c1 1.3.1-1
ii libpython3.63.6.6-2
ii libssl1.1 1.1.1~~pre9-1
ii libsystemd0 239-5
ii lsb-base9.20170808
ii openssl 1.1.1~~pre9-1
ii unbound-anchor 1.7.3-1
unbound recommends no packages.
Versions of packages unbound suggests:
pn apparmor
-- Configuration Files:
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf [Errno 2] No such
file or directory:
'/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf'
-- no debconf information