How to maximize your ENS domain
I’m sending this article to everyone—including free subscribers. But only full subscribers get the special ENS domain gift at the end. Don’t miss out! Subscribe to the full program.
Dear Crypto Natives,
Your Ethereum address is your new bank account. It’s your passport to a new money system. And it should have a human readable name.
We’ve assigned ENS domain registration as a weekly assignment in the past and now this tactic goes a whole level deeper.
Once you have an ENS domain, did you know you can also:
- Register subdomains?
- Sell your subdomains?
- Spin up a website for selling subdomains?
- Reward refers who resell your domains?
Yep! It’s all detailed in today’s tactic written with the help of my friend Eric Conner who’s recently spun up a couple ENS domain experiments of his own.
And I’m giving a gift to full subscribers—get a banked.eth subdomain 🎁
I’m giving out banked.eth subdomains for full subscribers! Since we’re all going bankless and getting banked by the public money system of Ethereum instead, why not pick up a banked.eth address to claim your seat on the rocket ship? Grab jason.banked.eth or evilgenius.banked.eth it’s up to you. First come first served. Instructions to receive your gift at the end of this tactic.
I expect human readable addresses to become a big part of the open finance experience before long—so let’s keep ahead of the crowd.
Let’s level up on ENS names!
- RSA
P.S. Privacy note—best to register an ENS domain via a new ETH address you create. Either transfer ETH funds to the new address using an exchange or a mixing service. That way the ENS domain won’t be connected to previous transaction history you’d prefer to keep private.
TACTICS TUESDAY:
Tactic #11:
How to maximize your ENS domain
A guest co-post by: Eric Conner of EthHub / Gnosis
Content from this post has been cross posted by Eric on his Medium here.
You can get an .eth address for your Ethereum account just like you might get a .com for your website. Why do this? An address like yourname.eth is way more human readable than an address like 0x964950b576C547bE9DB0ce98B6024CCbF338DB7c.
And once you have an .eth domain name you can setup subdomains, you can sell them, you can incentivize others to sell them for you. Today we’ll be covering these advanced topics in depth. Eric has written the ultimate guide for us.
- Goal: Learn how to register an ENS name, create subdomains, and sell them
- Skill: Intermediate—Advanced
- Effort: 1-2 hours
- ROI: Getting good with ENS names can make you money
You’ll need to have Metamask setup and some ETH in your account for this tactic. Also, remember to look for the gift 🎁at the end of the article.
The Ultimate Guide to ENS Names
The Ethereum Name Service is one of the most popular projects on Ethereum right now and for good reason. As the website state, “ENS offers a secure & decentralized way to address resources both on and off the blockchain using simple, human-readable names.”
In short, you are able to give your Ethereum (or favorite chain) address a name. This is much like how the traditional web works with DNS. All websites are hosted at an IP address but no one actually puts that in their browser, instead we use names such as amazon.com, not 205.251.242.103 (try it, it works!). The ENS has many great features but I’m going to focus this guide specifically on registering and managing .eth names and their subdomains.
Registering .eth Domain Names
The core functionality of the ENS is registering .eth domains. There are a few important rules to keep in mind when it comes to registering domains on the ENS:
- Minimum domain length is 3 characters.
- Annual renewal fees. 3 characters: $640/year, 4 characters: $160/year, 5+ characters $5/year.
- Emojis are valid. 👍🏼
Creating and Managing Domains
Registering a domain is extremely easy using the ENS app. First search for the ENS name that you’d like. If it is not taken (if it is, head over to OpenSea and search for it), you will be presented with this screen.
ENS domain registration
Once here you can click request to register which will trigger a transaction, wait 1 minute and then you can register the name. It’s now yours.
Now that you own a .eth domain, you want to enable all the cool features that it offers. This starts on the domain management screen.
ENS domain management
There is a lot going on so let’s put all of the pieces together:
- Registrant: can set the controller address, and transfer the registration to someone else. This is the ultimate owner.
- Controller: essentially handles the “day to day operations” of the domain.
- Expiration Date: when your renewal fee is due and you can pay it here as well.
- Resolver: handles resolving (translating) the records put below such as what Ethereum address is tied to this domain. Should be set the public resolver which will be the default option when clicking the Set button.
- Records: this is where you can add the cool stuff to your domain. Put an address here so that when you put your domain name in a wallet, it points to this address. You can also put an IPFS content hash which when going to your domain in a web browser will pull up your website.
Once you set an Ethereum address in the address field, it will resolve in wallets such as MetaMask.
MetaMask support for ENS names
And if you point it to an IPFS hash, you can pull up the domain at ethhub.eth/ or ethhub.eth.link for browsers that don’t resolve ENS names.
Subdomains
Subdomains offer great flexibility for building on top of .eth domains. If you are a company such as Maker and want to issue all your employees maker.eth subdomains, this is very easy to do. This section will cover both creating subdomains on a domain you own and unique ways of allowing others to buy subdomains on a domain you own.
Creating and Managing Subdomains
If you own a .eth domain and simply want to create subdomains for your own use, the easiest way to do this is through the ENS app by clicking on the Subdomains button. This is where you can add new subdomains.
ENS Subdomain Registration
Once subdomains are setup, they act very similar to domains in that the owner can control them and setup records. That means something like eric.ethhub.eth can also resolve to an address and an IPFS website.
ENS Subdomain Manager
Allowing Anyone to Claim Subdomains on your .eth Domain
All of the above is being done by the registrant of the .eth domain. They are the one setting up the subdomains and have ultimate control over them, including being able to revoke them. This is fine for a company or someone that wants full control over the subdomains but what if you want anyone in the world to be able to claim a subdomain on your domain? You obviously don’t want to have to coordinate with them and they won’t want you to be able to revoke access. The good news is there is a solution that easily allows you to open up registration of subdomains on your domain. You can even set a price at which you’d like to sell them.
Doing this starts with turning control of your domain over to the ENS Subdomain Registrar contract. This means that the contract is able to distribute out subdomains to people but you no longer can revoke access to those subdomains. The steps at the moment are fairly manual but also easy. Nick Johnson lays out the steps well in this ENSNow domains post so I’m going to just put them here:
Warning: By doing this, you are permanently giving up use of your domain! You will be able to collect registration fees, change prices, and transfer control to another user — but you will never be able to use your domain for anything else!
- Load up the .eth registrar contract. If you are using Etherscan, you will need to click “Connect with Metamask” and authorize the subsequent dialog box from Metamask.
- Find the ‘approve’ function.
- In the address field, enter ‘0xc32659651d137a18b79925449722855aa327231d’
- In the tokenId field, enter the labelhash of your name. You can look this up by searching for your ENS on etherscan (look for ‘Label hash [foo]:’).
- Submit the transaction.
- Load up the new subdomain registrar contract.
- Find the ‘configureDomain’ function.
- In the name field, enter the name you want to list, without ‘.eth’ (Eg, ‘gimmethe’, not ‘gimmethe.eth’).
- In the price field, enter the price to charge for a new domain, in wei. 1 ether is 1,000,000,000,000,000,000 wei, so for instance to charge 0.01 ether per domain, you should enter 10000000000000000. A convertor can be found here.
- In the referralFeePPM field, enter the amount you want to give to any website that finds a new user for you. For instance, to keep the entire amount yourself, enter 0; to give it all to the site, enter 1000000.
- Submit the transaction.
Your domain has now been handed over to the subdomain registrar contract. If you’ve set up a fee, anytime someone registers a subdomain, the funds will be directed to the original owner address. This has now opened up a lot of possibilities!
Listing Your Subdomains on ENSNow
The ENS team has setup a website which allows for claiming of subdomains. If you’d like your subdomains listed here the process is quite easy. Once again Nick has a blog post about the steps and I’m going to put them below:
- Go to this page and click ‘fork’ in the top right corner.
- Navigate to app -> js -> domains.json
- Click on the pencil icon in the top right corner of the file.
- Find the appropriate place to insert your entry (entries are listed alphabetically).
- Add a new line with your entry. If using the default registrar for steps 2 and 3, this should look like
{"name": "yourdomain", "version": "1.0"},
. - Commit your changes by clicking ‘Commit changes’ down the bottom of the page.
- Click on ‘Pull requests’, then ‘New pull request’.
- Click on ‘Create pull request’.
ENSNow
Hosting Your Own Subdomain Sale Site
ENSNow is great and easy, but the list of domains supported there is rather long and you cannot specifically brand your own domain. So, if you’d like to setup a site that only lists your domain and allows you to customize it, that is possible as well. A good example of this is a site I’m running called Ethmojis.
The best place to start is on the Subdomain Registrar GitHub page. They have a “getting started” section which tells you how to run it but I’ll try to summarize the steps up as best as I can below
- Install node.js and NPM
- Install Truffle on your computer using
npm install -g truffle
- Download and install Ganache
- Clone the subdomain-registrar repo to your computer.
- In terminal, navigate to the folder you cloned it to and run
npm install
- Find the /app/js/domains.json file and edit the whitelist to only include your domain. Mine looks like: [{“name”: “ethmojis”, “version”: “1.0”}]
- Edit the index.html file however you’d like for your site.
- In terminal, change directory to where you cloned the subdomain registrar.
- Run:
ganache-cli &
truffle deploy
npm run dev
- If everything looks goo, run
npm run build
- A build folder should be created and files output here. This is your final site that you can upload to a web server or IPFS.
To host on IPFS, upload the entire build folder and get your content hash. You can then put this content hash in the “records” section of any ENS domain or subdomain! Here’s an example of how it will look:
Buy Ethmojis
Congrats, you are now an expert on the Ethereum Name Service!
Was this too advanced? I also found this post useful for setting up an ENS name.
Now grab your banked.eth subdomain 🎁
Claim your banked.eth subdomain & connect it to your Ethereum address. Each subdomain is unique. After registration, the domain is fully under your control at no cost. There’s a .001 ETH fee just so it doesn’t get spammed. First come first served!
👉Claim your banked.eth subdomain (full subscribers only)
Action steps
- Grab an ENS name (if you don’t have one) & setup a subdomain
- Consider giving ENS subdomains to others or selling them
- Claim your banked.eth subdomain (full subscribers only)
Author Blub
Author's Bio: Eric is one of my favorite crypto natives. Co-founder of EthHub, product manager building awesome stuff at @gnosispm, and host of the Into the Ether podcast. My only question—where does he find the time to be so productive?
Subscribe to the Bankless program. $12 per mo. Includes Inner Circle & Deal Sheet.
Filling out the skill cube
ENS names are in the wallets layer of the skill cube. I also consider them investments!
👉Send Bankless a DAI tip for today’s issue
Not financial or tax advice. This newsletter is strictly educational and is not investment advice or a solicitation to buy or sell any assets or to make any financial decisions. This newsletter is not tax advice. Talk to your accountant. Do your own research.
Disclosure. From time-to-time I may add links in this newsletter to products I use. I may receive commission if you make a purchase through one of these links. I’ll always disclose when this is the case.