? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

CryptonBits

Random musings about cryptography and communication.

Follow in NewsfeedFollowing

Latest comments:

Add new post

Title

21 hours ago · 2 min read 10
Body
Read more

How to connect your .bit domain with your Zeronet site

on Mar 04, 2016

I've seen an increase in people asking a simple question on how to integrate or link up a .bit domain name instead of having to pass out a public key address for people to visit. So here's a quick little walk through.

First, its important to understand that .bit domains an an important part of the Namecoin blockchain . Namecoin is a merge-mined coin with Bitcoin(BTC) and its blockchain operates as a decentralized DNS. So the easiest way to get a .bit domain name is to have a Namecoin-Qt client running on your machine.

Register .bit domain

In the above input box you enter your desired .bit domain name WITHOUT the .bit extension. So if you want to register cryptonbits.bit, you would enter just d/cryptonbits. It will cost you 0.02 NMC to register the domain. (Any time you make updates to the name's record it will cost you 0.005 NMC.)

Why does it cost money?

Because the entire decentralized DNS system lives in the blockchain of the Namecoin cryptocurrency any registration or record change must be recorded in the blockchain for everyone to verify and confirm. Thus the small fees associated with registration and record modifications are the simple transactional fees that make the network possible.

Okay, so you've followed so far up to this point. Now we will look at how to point that .bit domain to our Zeronet site we have built. When you click on the name record in the Manage Names tab of the Namecoin-QT wallet you will be presented with a window that looks like this:

Modify .bit Domain Records

Since we are going to be hooking up our .bit domain to Zeronet we need to use the Custom Configuration settings.

Add Zeronet configuration to .bit domains

As you can see we entered a valid JSON string into the empty field box that sets up the connection to our Zeronet site that currently lives at http://127.0.0.1:43110/1C5P1EcTZA6FDEg4w6SacfPjvSDCWmzeyt. To make things easier I'll write out the JSON string so you don't have to squint and guess at the image.

{ "zeronet" : { " " : "1C5P1EcTZA6FDEg4w6SacfPjvSDCWmzeyt" } }

When we hit okay, if we are doing this custom configuration after our initial registration of the .bit domain it will cost us the 0.005 NMC to change the records. And now you wait for the records and the domain registration to make its way into the Namecoin blockchain. Once that is in the blockchain, and Zeronet sees the domain records (due to the zeronet configuration we entered above), we can now use our new .bit domain.

http://127.0.0.1:43110/cryptonbits.bit

I hope these tutorials and mini-walk through posts are helpful. If people find them useful I'll keep doing these.

Special Note -- Be aware that there are many ways to register a .bit domain and command line methods of setting up the configuration of the .bit domain. I simply wanted to show one of the easiest ways to accomplish the task.

10 Comments:

user_name1 day ago
Reply
Body
cryptonon Mar 06, 2016
Reply

angristan: Working well, thank you ! :Dhttp://127.0.0.1:43110/angristan.bit

You are welcome and congrats on getting your site up and connected.

angristanon Mar 06, 2016
Reply

Working well, thank you ! :D
http://127.0.0.1:43110/angristan.bit

angristanon Mar 06, 2016
Reply

crypton: I'm not familiar with PeerName, just knew that you could register .bit domains through their site. I would assume that all you'd need to do is send them your public key of your Zeronet site and they would setup the zeronet parameters in their nameserver configurations of their installed Namecoin daemon.

Yes, I told them to put the { "zeronet" : ... thing, we'll see :)

cryptonon Mar 06, 2016
Reply

angristan: Thx, trying PeerName.They say "Please, send us NS servers or other value for the domain." what do I do ? :(

I'm not familiar with PeerName, just knew that you could register .bit domains through their site. I would assume that all you'd need to do is send them your public key of your Zeronet site and they would setup the zeronet parameters in their nameserver configurations of their installed Namecoin daemon.

angristanon Mar 06, 2016
Reply

crypton: You can pay for them at 2 or 3 different .bit registrars. Dotbit.me | DomainCoin | PeerName | or learn more at Bit.Namecoin.info

Thx, trying PeerName.
They say "Please, send us NS servers or other value for the domain." what do I do ? :(

mujaon Mar 05, 2016
Reply

Here's a follow up to this post.

cryptonon Mar 05, 2016
Reply

angristan: How do we do if we don't have Namecoins ?

You can pay for them at 2 or 3 different .bit registrars. Dotbit.me | DomainCoin | PeerName | or learn more at Bit.Namecoin.info

angristanon Mar 05, 2016
Reply

How do we do if we don't have Namecoins ?

cryptonon Mar 04, 2016
Reply

ovidiu: If I understand this correctly, the namecoin blockchain behaves like the root name servers where all zones live.Zeronet gets the domain names with key "zeronet", updates the ZeroName site and then updates the peers.
I've been stumbling around trying to register a name before reading your post. I see that just like in DNS there's this key-value association that lives in the namecoin blockchain for a limited time until a renew every 36k blocks but instead of usual keys like A, AAAA, MX etc.. these can be arbitrary (like name, bitcoin... etc).
If you use zeronet though, how do the NS entries fit in ? The ZeroName page gives such an example.
{
"name": {
"formatted": "ZeroNet project"
},
"bitcoin": {
"address": "1QDhxQ6PraUZa21ET5fYUCPgdrwBomnFgX"
},
"zeronet": {
"": "1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr",
"blog": "1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8",
"talk": "1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ"
},
"ns": [
"ns1.domaincoin.net"
"ns2.domaincoin.net"
]
}

Namecoin can also server their .bit domains through their own system (or their own proxies) and so you can setup a traditional nameserver setup for the domain or you can use .bit domains to redirect to an IP address or any number of other options they are still working on. The wiki at https://wiki.namecoin.org goes into a much deeper level of what you can do with .bit domains.

In terms of other zeronet setup requirements, I only wanted to show you how to get up and running quickly. For more details... I'll either write a follow-up post or people can visit https://zeronet.readthedocs.org/en/latest/faq/#how-can-i-register-a-bit-domain until that time.

ovidiuon Mar 04, 2016
Reply

If I understand this correctly, the namecoin blockchain behaves like the root name servers where all zones live.Zeronet gets the domain names with key "zeronet", updates the ZeroName site and then updates the peers.

I've been stumbling around trying to register a name before reading your post. I see that just like in DNS there's this key-value association that lives in the namecoin blockchain for a limited time until a renew every 36k blocks but instead of usual keys like A, AAAA, MX etc.. these can be arbitrary (like name, bitcoin... etc).

If you use zeronet though, how do the NS entries fit in ? The ZeroName page gives such an example.

 {
    "name": {
        "formatted": "ZeroNet project"
    },
    "bitcoin": {
        "address": "1QDhxQ6PraUZa21ET5fYUCPgdrwBomnFgX"
    },
    "zeronet": {
        "": "1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr", 
        "blog": "1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8", 
        "talk": "1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ"
    },
    "ns": [
       "ns1.domaincoin.net"
       "ns2.domaincoin.net"
    ]
 }
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More