khalahan / nmcontrol Goto Github PK
View Code? Open in Web Editor NEWNamecoin Control
Namecoin Control
I perused nmcontrol help
, but nmcontrol didn't seem capable of automatic domain renewal.
Can you help me?
I'm sure you already know, but the DNS server functionality no longer works.
I have hacked together some code to get simple Ipv4 address resolution working using the latest code, but it is a total mess.
Wondering when you are planning to get the DNS server working again? It doesn't seem too difficult just some decisions around which function should be doing the resolution...
Can confirm it does not work with Python 3, I get the error:
File "./nmcontrol.py", line 63
print "Exception when loading "+modType, module, ":", e
^
SyntaxError: invalid syntax
Hi,
After testing, seems that resolving IPv6 addresss do not work. Tried with the lastest nmcontrol version and tried using a public opennicproject DNS. IPv4 is OK, IPv6 nothing.
See this example:
pi@raspberry ~ $ namecoind name_show d/buro
{
"name" : "d/buro",
"value" : "{\"ip\":\"83.160.102.54\",\"ip6\":\"2001:980:608c:1:215:5dff:fe00:a301\",\"map\":{\"*\":{\"ip\":\"83.160.102.54\",\"ip6\":\"2001:980:608c:1:215:5dff:fe00:a301\"}},\"website\":\"http://SQUATTER-WEB\",\"email\":\"SQUATTER-EMAIL\",\"bitmessage\":\"BM-SQATTER-BM_ADDRESS\",\"namecoin\":\"SQUATTER-NAMECOIN-ADDRESS\",\"about\":\"bit domain reservation\"}",
"txid" : "058e8a0147a302f8fc7ba17c32aeda4562e6702c1ebaa05a6323d2fcf2359040",
"address" : "N7KMG9o43V8yygPLKKfhcxPE6b6EhUnkxA",
"expires_in" : 15022
}
pi@raspberry ~ $
pi@raspberry ~ $
pi@raspberry ~ $ dig -t A buro.bit
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> -t A buro.bit
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6397
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;buro.bit. IN A
;; ANSWER SECTION:
buro.bit. 300 IN A 83.160.102.54
;; Query time: 13 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Dec 4 17:39:03 2014
;; MSG SIZE rcvd: 50
pi@raspberry ~ $
pi@raspberry ~ $
pi@raspberry ~ $ dig -t AAAA buro.bit
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> -t AAAA buro.bit
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54242
;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;buro.bit. IN AAAA
;; Query time: 12 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Dec 4 17:39:10 2014
;; MSG SIZE rcvd: 26
# ./nmcontrol.py --daemon=0
Plugins started : domain, guiHttp, guiHttpConfig, dns
ERROR: Unable to start HTTP server ([Errno 98] Address already in use)
$ nmap localhost
Exception in thread Thread-11:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/.../nmcontrol/plugin/pluginRpc.py", line 93, in run
data = self.client.recv(self.size)
error: [Errno 104] Connection reset by peer
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.