To start using the most popular browser in the world, we can go to 216.58.207.238 but typing in google.com in the URL field is more convenient. It is made possible by DNS (Domain name system). In Free TON network, there is an analogue to DNS - DeNS. By using Decentralised Name Service you can use blockchain service without massive addresses such as 0:e49d816061c8d83f3f31d44a6bfa938855ad8848a5ab9b7206d2d9808636dac0.
In this article we will explain how to register your address in the system and how to put a price on subdomain registration.
Keep in mind that in a decentralised network there can be lots of DeNS. Once you register a name in one system, you do not become an owner of this name in another system. We cannot tell which system will prevail, it will depend mostly on how a browser will develop. At the moment of publishing this article, DeNS by Agual.Team is the only working solution in the network.
To check if a domain is already taken or get information about the domain, you can visit https://freeton.domains
Example of domain information.
To register a domain, you need to use any blockchain browser, which supports DeBots and go to “dens” or go to 0:e49d816061c8d83f3f31d44a6bfa938855ad8848a5ab9b7206d2d9808636dac0 if the browser doesn’t support DeNS. We can show an example in TON Surf. At the moment of publishing this article it doesn’t support DeNS.
Let’s register a domain with the name freedom.
- Open DeBot
- Put in domain address
- Click “Deploy and claim domain”
- Choose “Crystals”
- We need to choose a certain amount of TON Crystals to attach a message of domain registration. We can choose 0 and then 1.5 TON will be added to the transaction. That sum will cover all commissions for transactions and change will be sent back to the wallet.
- Sign the transaction with TON Surf
Done! Our domain is registered and we can get information about it on https://freeton.domains
The domain is registered for 90 days and 10 days before expiration you will be able to extend the registration. It is for free, you will only need to pay commission for a transaction in a network.
We can set the rules for a subdomain registration on our domain. If you name your subdomain market, its full address will be as following: freedom.market
There are 4 sets of rules that you can set for the subdomain registration:
- FFA (Free-for-All) - subdomains can be registered by anyone for free
- OWNER (Owner only) - subdomains can be registered only by the owner of the domain.
- DENY (Prohibited) - subdomain registration is prohibited. This rule is set as a default.
- MONEY (Payment) - subdomains can be registered by anyone for a certain price.
- Let's have a look on the Payment rule and set the price at 1 TON for subdomain registration.
- Log in to DeBot
- Put in domain name
- Click on “Manage domain”
- Choose “Change Registration Type”
- Choose “Money (Payment)”
- Sign the transaction with TON Surf
- Go back to “Manage domain”
- Choose “Change Registration Price”
- Set the price for subdomain registration
- Sign the transaction with TON Surf
- Now we will get paid for every registered subdomain on our domain. The price and the type of registration can be changed at any time, you will need to pay only commission for the transaction.
In the next part we will discuss endpoint and will show you how to use DeNS, but now subscribe to our Telegram channel and recommend it to your friends!