ENS integrates with the DNS naming system, enabling millions of traditional domain owners to crypto-enable their domains (see Article 4 – ENS integrates with the global namespace). This means it's possible to use, for example, your .com .net or .org DNS name with ENS.
There are two ways to supercharge your DNS name with ENS functionality and both methods integrate with DNSSEC (security layer for DNS). This article discusses the offchain method. For information about the onchain method see Claim your DNS name onchain.
Offchain Gasless DNSSEC in ENS
This method is straightforward and simply requires the user to:
Turn on DNSSEC
Set a TXT record
There is no cost or onchain transaction required for offchain gasless names.
No need to send any transactions.
No need to pay any gas.
Your ENS name will just start working... instantly.
Technical information
To address high gas costs, Gasless DNSSEC adopts innovations of ERC-3668 CCIP Read and applies them to accessing names that are not onchain. By using CCIP Read to fetch and verify DNS records at the time of resolution, there's no need to submit proof of ownership onchain.
Documentation can be found on docs.ens.domains
Instructions
Note: You can only enable existing DNS domain names that you own.
1. Enable DNSSEC on any eligible domain
Not all registrars or hosting providers support DNSSEC, and some only support it as an additional paid service.
Supported DNSSEC key types
In order for your registrars or hosting providers DNSSEC to work with ENS it must use either RSA/SHA-256 or ECDSA keys.
If they don’t, you’ll need to migrate to a DNS provider that does.
Hosting providers with DNSSEC support
Hosting provider | Key support | Links |
easyDNS | RSA/SHA-256 & ECDSA | |
Google Cloud DNS | RSA/SHA-256 & ECDSA | |
Namecheap | RSA/SHA-256 & ECDSA | |
Hostinger | RSA/SHA-256 & ECDSA |
|
Hostgator | RSA/SHA-256 & ECDSA |
|
Bluehost | RSA/SHA-256 & ECDSA |
|
WordPress does not offer DNSSEC support
If you're using them to host your DNS you will need to migrate to another service for your DNS hosting. This does not mean you will have to stop using Wordpress.
2. Set the following DNS record
| Type | Name | Value (this format might change) |
Format | TXT | @ | ENS1 dnsname.ens.eth <eth-address> |
Example | TXT | @ | ENS1 dnsname.ens.eth 0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7 |
Note for developers or advanced users
DNS Subnames
You can gaslessly resolve DNS subdomains too (of any level, 3LD, 4LD, etc) just by adding the same TXT record for that subdomain.
For
vault.myname.com
, instead of name = "@
", it would be "vault
"For
sub.vault.myname.com
, the TXT record name = "sub.vault
"
3. Done
Now anybody would be able to type yourname.com
into web3 applications that support ENS, and it would resolve to the provided Ethereum address. Try it here.