This script generates a BIND zonefile from the Namecoin blockchain.
- Running instance of Namecoin
- jsonrpclib -
pip install jsonrpclib
- Clone this repository into
/opt/nmczone/or a path of your choice - Install and configure Namecoin in
~/.namecoin/namecoin.conf - Install and configure BIND
- Populate
nmczone.confwith the user and password from~/.namecoin/namecoin.conf - Add the authoritative nameserver and contact email in
nmczone.conf - Run the script
update.shvia cron at an interval of your choice.
From Namecoin Domain Name Specification 2.0
| Type | Corresponding DNS Record |
|---|---|
| ip | A |
| ip6 | AAAA |
| alias | CNAME |
| translate | DNAME |
| ns | NS |
| map |
| Type | Corresponding DNS Record |
|---|---|
| service | SRV |
| delegate | |
| import | |
| ds | DS |
| loc | LOC |