A Comprehensive Guide to Ethereum Name Service (ENS)

·

Introduction to ENS

Ethereum Name Service (ENS) is a distributed, open, and extensible naming system built on the Ethereum blockchain. It translates human-readable domain names (e.g., alice.eth) into machine-readable identifiers like:

ENS also supports reverse resolution, enabling the association of metadata (e.g., canonical names or interface descriptions) with Ethereum addresses.

How ENS Compares to DNS

While ENS shares DNS’s hierarchical structure (domains separated by dots), its architecture diverges due to Ethereum’s blockchain capabilities:

Example: Alice owns alice.eth → Can create subdomains like pay.alice.eth.

👉 Explore ENS domains today


ENS Architecture: Core Components

1. ENS Registry

A smart contract that tracks domains and stores:

Owners (users or contracts) can:

2. Resolvers

Smart contracts that convert domain names into addresses. Key features:

Resolution Process:

  1. Query the registry for the domain’s resolver.
  2. Ask the resolver for the target address.

Namehash: How ENS Handles Domains

ENS uses cryptographic hashes (256-bit) for efficiency:

👉 Learn more about Namehash


Getting Started with ENS

For DApp Developers

  1. Enable ENS in your DApp
  2. Choose from available ENS libraries.

For Smart Contract Developers

  1. Resolve names on-chain
  2. Write custom resolvers or registrars.

API References


FAQ

1. What’s the cost of registering a .eth domain?

Prices vary based on domain length (e.g., 3+ characters). Annual renewal fees apply.

2. Can I transfer my ENS domain?

Yes! Owners can transfer domains to other addresses via the ENS Manager.

3. How does reverse resolution work?

It links Ethereum addresses to metadata (e.g., 0x123...alice.eth).

4. Is ENS compatible with wallets like MetaMask?

Absolutely. Most Ethereum wallets support ENS domain inputs.

5. Where can I manage my ENS domains?

Use the ENS Manager or official ENS apps.


Documentation translated by Liubenben. Original version: ENS Docs. Last updated: 10/31/2019.


### Key SEO Keywords:  
1. Ethereum Name Service  
2. ENS domains  
3. Blockchain naming system  
4. .eth registration  
5. Smart contract resolvers  
6. Namehash algorithm  
7. Decentralized domains  
8. ENS registry