Ethereum Name Service

Also known as: ENS

On this page 7

The Ethereum Name Service (ENS) is a decentralized naming protocol on Ethereum that maps human-readable names such as alice.eth to machine identifiers, above all wallet addresses, but also content hashes, other chains’ addresses and text records. In the field of Wallets & custody within Crypto & blockchain, ENS sits between the user and the raw 42-character hexadecimal address, reducing the chance of sending funds to the wrong destination.

ENS is often compared with the internet’s Domain Name System, yet the resemblance is functional rather than architectural. Names are owned as on-chain assets, controlled by private keys rather than by a registrar account, and resolution happens by querying smart contracts rather than a hierarchy of DNS servers.

How ENS resolves a name to an address

ENS resolves a name through a two-step lookup: the registry contract says which resolver is responsible for a name, and the resolver contract returns the requested record. Before any lookup, a wallet converts the name into a fixed-length identifier using the namehash algorithm, a recursive Keccak-256 hash that processes labels from right to left, so eth is hashed first and alice is combined with it afterward.

The registry itself stores only three things for each node: the owner, the resolver address and a time-to-live value. All actual data, such as the Ether address or an avatar link, lives in the resolver. This separation lets owners switch resolvers without changing ownership, and it lets developers deploy custom resolvers that compute answers dynamically.

The table below lists the main components a wallet touches during resolution and what each one contributes.

ComponentRoleWhat it stores or returns
RegistryRoot of trust for all namesOwner, resolver and TTL per node
ResolverAnswers record queriesAddresses, content hash, text records
RegistrarAllocates names under a top-level nameRegistration and renewal rules
Name wrapperWraps names as ERC-1155 tokensFuses that lock permissions
Reverse registrarMaps an address back to a namePrimary name for display
Core components of ENS resolution

Most wallets also perform reverse resolution, which asks which name an address claims as its primary name. A careful client then performs a forward check to confirm that the claimed name really points back to the same address, because anyone can set an arbitrary reverse record.

Name types, ownership and renewal

ENS supports several categories of names that differ in how they are acquired and who controls them. Second-level .eth names are rented from the ETH registrar controller for annual fees paid in Ether, while imported DNS names are proven through DNSSEC and subdomains are issued by whoever controls the parent name.

Name typeHow it is obtainedControl and expiry
.eth second-level nameRegistered via commit-revealAnnual rent; expires after grace period
Imported DNS nameProved with DNSSEC recordsFollows ownership of the DNS domain
SubdomainCreated by the parent ownerParent can revoke unless fuses are burned
Off-chain subnameServed via CCIP-Read gatewayDepends on the gateway operator
Main categories of ENS names

Registration of a .eth name uses a commit-reveal scheme to prevent front-running: the buyer first submits a hashed commitment, waits at least about one minute, and then reveals the name. Pricing depends on length, with three- and four-character names priced considerably higher than names of five or more characters, and an expired name passes through a 90-day grace period followed by a temporary premium auction.

ENS distinguishes the registrant, who owns the NFT representing the name, from the controller or manager, who may edit records. In custody planning this matters: a team can keep the registrant role in a cold wallet or multisig wallet while an operational hot wallet manages day-to-day records.

ENS names are pointers, not wallets: they hold no funds and replace no keys. The comparison below shows how an ENS name relates to identifiers that users of wallets frequently confuse with it.

IdentifierWhat it representsCan it be changed by its owner
ENS nameReadable label resolving to recordsYes, records are editable
Wallet addressHash of a public key or contractNo, fixed by the key or code
Seed phraseSecret that derives private keysOnly by migrating to a new wallet
DNS domainReadable label for internet hostsYes, through a registrar account
ENS name versus other identifiers

Because ENS records are editable, a name is a mutable reference. A payer who resolved alice.eth last month cannot assume it still points to the same wallet today, which is why well-designed wallets resolve at the moment of sending and display the resulting address.

Multichain addresses and off-chain resolution

A single ENS name can store addresses for many blockchains through coin-type records defined in ENSIP-9 and ENSIP-11, which follow the SLIP-44 numbering for non-EVM chains and a derived scheme for EVM networks. A user can therefore publish a Bitcoin, Solana and layer-2 address under one name, provided the sending wallet reads the correct coin type.

CCIP-Read, specified in EIP-3668, lets a resolver instruct the client to fetch data from an off-chain gateway and verify it against on-chain proofs or signatures. This mechanism powers cheap subnames issued by applications and layer-2 networks, but it introduces gateway availability and trust assumptions that ordinary on-chain records do not have.

Security risks and custody practices

ENS reduces address-copy errors but creates new attack surfaces. The most serious are homoglyph names that look identical to a legitimate one, expired names re-registered by attackers, and compromised manager keys that silently redirect payments.

RiskHow it arisesMitigation
Lookalike namesUnicode characters mimic Latin lettersENSIP-15 normalization and visual warnings
Expiry takeoverOwner forgets to renewMulti-year renewal and calendar alerts
Record hijackManager key is stolenRegistrant in cold storage or multisig
Stale cached addressPayer saves an old resolutionResolve at send time and confirm
Gateway failureOff-chain resolver is offlineUse on-chain records for critical payments
Common ENS risks and mitigations

Recommended practice is to renew names for several years, store the registrant role with stronger custody than the manager role, set a reverse record so the name displays correctly, and, for large transfers, verify the resolved address through a second channel. ENS normalization under ENSIP-15 rejects many confusable characters, but no normalization scheme removes every visual trick.

Stripped to the essentials

A crypto wallet address is a long string of letters and numbers that nobody can remember. ENS lets people attach a short, memorable name to that string, much like a phone contact name stands in for a number. When someone types alice.eth, the wallet looks up the real address and sends the money there.

The name belongs to its owner in the same way a token does, and the owner can change where it points. That flexibility is useful, but it also means the name must be renewed and protected like any other valuable asset.

Where it is applied

A small open-source foundation receives donations from contributors around the world. Instead of publishing a raw address, it registers a .eth name for five years, keeps the registrant role in a three-of-five multisig wallet held by board members, and assigns a single treasurer address as the manager that edits records.

The foundation stores its Ethereum address, a layer-2 address and a Bitcoin address under the same name, and sets the reverse record so donor wallets display the name. When the treasurer key is rotated, the multisig signs one transaction to replace the manager, and donors keep using the same name without noticing the change. The result is fewer mistyped transfers and a single, auditable payment identity.