Skip to content

Forwarding a bit zone using bind to nmcontrol fails #7

Description

@rptn

Debug:

Service dns started
Lookup: {'query': '', 'domain': 'dot-bit.bit', 'src_addr': ('127.0.0.1', 40955), 'qtype': 255, 'qclass': 1}
Traceback (most recent call last):
File "/home/sophie/nmcontrol/lib/dnsServer/init.py", line 94, in serve
rcode, an_resource_records = source_instance.get_response(query, ".".join(question), qtype, qclass, src_addr)
File "/home/sophie/nmcontrol/lib/dnsServer/namecoindns.py", line 99, in get_response
answers = app['services']['dns'].lookup({"query":query, "domain":domain, "qtype":qtype, "qclass":qclass, "src_addr":src_addr})
File "/home/sophie/nmcontrol/service/serviceDNS.py", line 39, in lookup
return app['plugins']['domain'].lookup(qdict)
File "/home/sophie/nmcontrol/plugin/pluginNamespaceDomain.py", line 187, in lookup
return self._bitLookup(qdict)
File "/home/sophie/nmcontrol/plugin/pluginNamespaceDomain.py", line 212, in _bitLookup
if reqtype == "A":
UnboundLocalError: local variable 'reqtype' referenced before assignment
Lookup: {'query': '', 'domain': 'dot-bit.bit', 'src_addr': ('127.0.0.1', 46479), 'qtype': 255, 'qclass': 1}
Traceback (most recent call last):
File "/home/sophie/nmcontrol/lib/dnsServer/init.py", line 94, in serve
rcode, an_resource_records = source_instance.get_response(query, ".".join(question), qtype, qclass, src_addr)
File "/home/sophie/nmcontrol/lib/dnsServer/namecoindns.py", line 99, in get_response
answers = app['services']['dns'].lookup({"query":query, "domain":domain, "qtype":qtype, "qclass":qclass, "src_addr":src_addr})
File "/home/sophie/nmcontrol/service/serviceDNS.py", line 39, in lookup
return app['plugins']['domain'].lookup(qdict)
File "/home/sophie/nmcontrol/plugin/pluginNamespaceDomain.py", line 187, in lookup
return self._bitLookup(qdict)
File "/home/sophie/nmcontrol/plugin/pluginNamespaceDomain.py", line 212, in _bitLookup
if reqtype == "A":
UnboundLocalError: local variable 'reqtype' referenced before assignment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions