homepage/content/post/setup-namecoin-tld-lookup.md

39 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2019-07-03 23:44:53 +00:00
+++
title = "Setup Namecoin Tld Lookup"
date = 2019-07-03T00:14:36+02:00
author = "MH"
cover = ""
tags = ["dns", "namecoin", "blokchain", "setup"]
description = "A straightforward way to set up a resolver only for Namecoins bit top-level domain"
showFullContent = false
2019-07-05 17:59:30 +00:00
draft = false
2019-07-03 23:44:53 +00:00
+++
2019-07-05 17:57:07 +00:00
This setup is distor independent. All you need is cron to start the blockchain and the name resolver.
2019-07-03 23:44:53 +00:00
2019-07-05 17:57:07 +00:00
download namecoin and ncdns binaries for your linux distros:
2019-07-03 23:44:53 +00:00
* [https://github.com/namecoin/ncdns/releases/latest](https://github.com/namecoin/ncdns/releases/download/v0.0.8/ncdns-v0.0.8-linux_amd64.tar.gz)
* [https://namecoin.org/download/](https://www.namecoin.org/files/namecoin-core-0.16.3/namecoin-0.16.3-x86_64-linux-gnu.tar.gz)
2019-07-05 17:57:07 +00:00
extract namecoin to /opt/namecoin
extract ncdns to /opt/ncdns
2019-07-03 23:44:53 +00:00
create new user e.g. <name> ( useradd name )
mkdir /var/lib/namecoin
chown name /var/lib/namecoin
crontab -e
```
@reboot sudo -u <name> /opt/namecoin/bin/namecoind -datadir=/var/lib/namecoin -rpccookiefile=/var/lib/namecoin/rpc.cookie &
@reboot sleep 20s; /opt/ncdns/bin/ncdns -service.uid $(id -u <name>) -ncdns.namecoinrpccookiepath /var/lib/namecoin/rpc.cookie &
```
2019-07-05 17:57:42 +00:00
2019-07-07 12:49:22 +00:00
Thats it, just reboot or exec it manualy!
2019-07-05 17:59:07 +00:00
> to test it:
> dig @localhost obermui.bit