Jump to content

Search the Community

Showing results for tags 'dnsmasq'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • BlockForums Announcements
    • Denarius Announcements
    • Kronos Wallet Announcements
    • The Crypto News Feed
  • Cryptocurrency Discussions
    • Cryptocurrencies
    • Altcoin Announcements
    • General Discussion
    • Tutorials & Help
  • Denarius Discussions
    • General Discussion
    • Tutorials & Help
    • Marketing & PR
    • Development
    • Mining & Staking
    • Trading & Exchanges
    • Marketplace
  • Programming & Design
    • Development QA
    • Design QA
  • Gaming
    • Bot Downloads & Discussion
    • Gaming Discussion
  • Classifieds
    • Buy Sell and Trade
  • Other Discussions
    • Element 115
    • The Lounge
    • Hardware & IoT
    • Tutorials & Guides
    • Domains & Hosting

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


BTC Address

Found 2 results

  1. How to setup a TOR Proxy Gateway through Denarius DDNS Naming System using the Names subdomains as the beginning of onion addresses. Going to use Ubuntu 20.04 and Snap daemon. First install Denarius snap daemon and sync the wallet, grab chaindata to make this faster. Install tor sudo apt install tor Using this guide to install dnsmasq https://unix.stackexchange.com/a/516808 Install dnsmasq sudo apt install dnsmasq Disable systemd-resolved sudo systemctl disable systemd-resolved.service Remove resolv.conf sudo rm /etc/resolv.conf Now we are going to add the Denarius DDNS and nameservers in. sudo /etc/dnsmasq.d/03-denarius-wildcard.conf add these to the file 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 Edit resolv.conf for our new name servers sudo nano /etc/resolv.conf Add in a clearnet nameserver and the Denarius DDNS localhost nameserver nameserver 127.0.0.1 nameserver 8.8.8.8 Restart dnsmasq sudo systemctl restart dnsmasq Ping a Denarius DDNS site like http://magnets.king ping magnets.king If the ping works this part is working. Setup Tor. sudo nano /etc/tor/torrc Add these lines to the top. HiddenServiceDir /var/lib/tor/ddns/ HiddenServiceVersion 3 HiddenServicePort 80 127.0.0.1:80 Restart Tor service to get our onion address. sudo service tor restart sudo cat /var/lib/tor/ddns/hostname I get 3lervphhwefgayia6fvbdokw2avdev3pa5u4h4bjhhonetl3z67uzeid.onion Setup NGINX sudo apt install nginx Edit the default config file because I am lazy sudo nano /etc/nginx/sites-available/default Add this in and adjust the onion address server { listen 127.0.0.1:80; server_name ~^(?<subdomain>.+)\.3lervphhwefgayia6fvbdokw2avdev3pa5u4h4bjhhonetl3z67uzeid\.onion$; location / { resolver 127.0.0.1 valid=30s; proxy_pass http://$subdomain; proxy_set_header X-Real-IP $remote_addr; } } Restart nginx. sudo service nginx restart Open up TOR Browser and go to Denarius DDNS names like this http://wiki.d.3lervphhwefgayia6fvbdokw2avdev3pa5u4h4bjhhonetl3z67uzeid.onion/ http://stats.d.3lervphhwefgayia6fvbdokw2avdev3pa5u4h4bjhhonetl3z67uzeid.onion/ http://satoshi.bitcoin.3lervphhwefgayia6fvbdokw2avdev3pa5u4h4bjhhonetl3z67uzeid.onion/ http://magnets.king.3lervphhwefgayia6fvbdokw2avdev3pa5u4h4bjhhonetl3z67uzeid.onion/ You should now have a a Tor Proxy gateway that can see the Denarius names as a wildcard catchall subdomain. Adjust for only sites you run or for clearnet sites you run to give newbies an easy way to check out a decentralized naming system on a blockchain.
  2. 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
×
×
  • Create New...