Giter Club home page Giter Club logo

nmcontrol's People

Contributors

domob1812 avatar gboily avatar jeremyrand avatar khalahan avatar uvadn2vuw2amensu19cy7ic24gvp7fd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nmcontrol's Issues

DNS Server No Longer Works

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...

Python 3

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

IPv6 support

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

Crash on port scan

# ./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

Forwarding a bit zone using bind to nmcontrol fails

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.