buzzkillb Posted January 31, 2021 Report Share Posted January 31, 2021 Lets start by making 2 things. First we will create a name called @example which someone can send denarius to. And then we will create a basic domain. Load the wallet and get some Denarius coins. We will need this to pay the fee + fee to miners to create / update / delete records. Go to the NVS screen or debug console to fill this in. I am going to use Debug console for most of the guide as its easier at the moment. Example of what this looks like in the debug console. name_new @blockforumsexample "In Denarius We Trust" 365 We then get a tx hash Under the My Denarius Names tab as you wait for the transaction to happen you will see a yellow highlight. Once the transaction goes through the yellow hightlight disappears and you now have your @name added to your wallet. To show your name type below name_show @blockforumsexample and you get { "name" : "@blockforumsexample", "value" : "In Denarius We Trust", "txid" : "1f19ede29c259cbb7335bf72f97942a3a23a941c0da7d557f74ce4f964ace842", "address" : "DR8f9v3WXqzRim7B4VzeKVYi6GG1jtpyhL", "expires_in" : 1051199, "expires_at" : 5265039, "time" : 1612055193 } To send to the name type sendtoname @blockforumsexample 1.337 1 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted January 31, 2021 Author Report Share Posted January 31, 2021 to create a domain lets do a very simple A record. In debug console name_new dns:blockforumsexample.d A=133.133.133.133 9999 Now your blockforumsexample.d will head to that A record. On nginx create a new server block like this sudo nano /etc/nginx/sites-available/blockexample edit to look like this for basic index.html type of website server { listen 80; listen [::]:80; root /home/denarius/website; index index.html index.htm index.nginx-debian.html; server_name blockforumsexample.d; location / { try_files $uri $uri/ =404; } } and now symlink that to sites-enabled sudo ln -s /etc/nginx/sites-available/blockexample /etc/nginx/sites-enabled check nginx is still happy sudo nginx -t restart the nginx service sudo service nginx restart Now head to next post to setup pihole to be able to view this site. The goal is to fully bypass everyone who can block us with these domain names and keep this nice and decentralized. 1 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted January 31, 2021 Author Report Share Posted January 31, 2021 to setup pihole as an easy way to view the Denarius Decentralized Domains Install pihole on a device. A Raspberry Pi4 4gb works perfect for this. As you must run the daemon/QT wallet as well to reach the NVS domains. https://pi-hole.net/ The denarius wallet requires ddns=1 in the denarius.conf to open up port 5333 so Piholes dnsmasq can talk our denarius daemon for the magic to happen. After you install and setup pihole, make sure you change your router for the new DNS, or on your Windows MAC Linux machine set the DNS to your new pihole's address. To be continued with more info here. Now edit this file and add the NVS domain names. sudo nano /etc/dnsmasq.d/03-pihole-wildcard.conf and add server=/d/127.0.0.1#5333 server=/dnr/127.0.0.1#5333 server=/denarii/127.0.0.1#5333 server=/king/127.0.0.1#5333 server=/ipfs/127.0.0.1#5333 server=/sys/127.0.0.1#5333 server=/btc/127.0.0.1#5333 server=/bitcoin/127.0.0.1#5333 I restarted the pi4 completely. To test go to these Denarius NVS domains http://stats.d http://wiki.d http://poswatch.d 1 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted January 31, 2021 Author Report Share Posted January 31, 2021 To update your domain name_update dns:blockforumsexample.d CNAME=denarius.io 9999 to delete your domain name_delete dns:blockforumsexample.d 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.