DyName: Dynamic DNS Update Client for Namecoin

Forum rules
Warning !
Avoid using binary softwares from untrusted users.
Prefer compiling it yourself and verify sources.
Post Reply
biolizard89
Posts: 2001
Joined: Tue Jun 05, 2012 6:25 am
os: linux

DyName: Dynamic DNS Update Client for Namecoin

Post by biolizard89 »

DyName is a Dynamic DNS Update Client for Namecoin. Written in Python; Licensed under GPLv3.

https://github.com/JeremyRand/DyName

Documentation is in the readme. Test reports welcome.
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: DyName: Dynamic DNS Update Client for Namecoin

Post by phelix »

biolizard89 wrote:DyName is a Dynamic DNS Update Client for Namecoin. Written in Python; Licensed under GPLv3.

https://github.com/JeremyRand/DyName

Documentation is in the readme. Test reports welcome.
This is meant to be used like DynDNS? Nice.
--i-want-my-domain-to-be-stolen
lol. Makes perfect sense, though.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: DyName: Dynamic DNS Update Client for Namecoin

Post by phelix »

Did you consider implementing icanhazip in python?

Code: Select all

# phelix / blockchained.com

import urllib
import urllib2

import socket

timeout = 10
socket.setdefaulttimeout(timeout)

class Fetcher(object):
    def __init__(self):        
        self.opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1))
        self.opener.addheaders = [('User-agent', 'DyName 123')] 
        
    def fetch(self, url):
        f = self.opener.open(url, timeout=timeout)
        data = None
        try:
            data = f.read()
        finally:
            f.close()            
        return data
        
if __name__ == "__main__":
    print "standalone"
    fetcher = Fetcher()
    print "ip: ", fetcher.fetch("http://icanhazip.com")
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

biolizard89
Posts: 2001
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: DyName: Dynamic DNS Update Client for Namecoin

Post by biolizard89 »

Yep, it's like DynDNS or No-IP.

I used Bash for the icanhazip scripts because it seemed easiest, but Python should work equally well, just save the Python script in the same folder and configure the .conf file to use it.
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

Post Reply