Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
ENSIP-10 introduces wildcard resolution to the Ethereum Name Service (ENS), allowing names without their own configured resolver to be resolved through a resolver associated with a parent domain.
This article translates, summarizes, and expands on the following specification.
More EIP, BIP, SLIP, CAIP, and ENSIP explainers:
Overview
ENS maps human-readable names to blockchain addresses and other records.
Traditional name resolution proceeds as follows:
- The client computes the namehash of the requested name to obtain its node.
- It queries the ENS registry to discover the resolver assigned to that node.
- If a resolver exists, the client queries the resolver using the node to obtain the requested record.
Under the earlier resolution mechanism, the process stops if the name has no configured resolver.
ENSIP-10 extends this process. When a resolver is absent, the client removes the leftmost label, computes the parent name's node, and queries the registry again. It repeats this process until it finds a resolver or exhausts the name hierarchy.
The resolver can then resolve records for the original full name, provided it supports the appropriate extended resolution interface.
ENSIP-10 introduces the resolve() method to support these more flexible resolution patterns.
Motivation
Wallet providers, exchanges, and DApps may want to assign each user a subdomain under a shared parent name, such as example.eth.
Previously, configuring each subdomain individually in the ENS registry introduced considerable costs for services with many users.
New users could also need to wait for a resolver-setting transaction to be included on-chain before using their assigned name. This added friction to the onboarding experience.
Wildcard resolution allows a compatible parent resolver to answer queries for subdomains that have no individually configured resolver. Depending on the service's implementation, users can obtain usable names without requiring a separate on-chain registry transaction for each subdomain.
The mechanism supports several possible applications:
- Deriving predictable contract addresses using CREATE2.
- Resolving names to a configured fallback address.
For CREATE2, see the following article.
The extension does not require replacing the ENS registry or existing resolvers. Legacy clients can continue resolving names through the original mechanism, although they cannot resolve wildcard records that depend on ENSIP-10.
Specification
Terminology
The specification uses the following terms.
-
namehash
The algorithm defined by ENSIP-1 for converting a name into a fixed-length node identifier.
For ENSIP-1, see the following article.
ENSIP-1: Understanding ENS registration and updates
-
dnsencode
Encodes a name using the DNS wire format based on RFC 1035, without the overall name-length limit of that RFC. The empty or root name is represented by a zero octet.
-
parent
Removes the leftmost label from a name. For example, the parent of foo.eth is eth, and the parent of eth is the empty name.
-
ens
The ENS registry contract on the relevant network.
Extended resolver interface
ENSIP-10 introduces the following interface.
interface ExtendedResolver {
function resolve(bytes calldata name, bytes calldata data) external view returns(bytes);
}A resolver implementing this interface must return true when supportsInterface(0x9061b923) is called. The interface identifier is not itself the return value of supportsInterface.
The client passes the DNS-encoded original name and ABI-encoded record query to resolve(). The resolver returns the encoded result or reverts if it cannot support the requested operation.
Discovering the resolver
An ENS client finds the resolver as follows:
- Initialize currentname to the complete requested name, such as foo.bar.eth.
- Query
ens.resolver(namehash(currentname)). - If a nonzero resolver address is returned, select it and stop searching.
- If currentname is the root or empty name and no resolver was found, terminate the search.
- Otherwise, replace currentname with its parent and repeat step 2.
This allows a resolver configured on a parent name to be discovered even when a subdomain has no resolver of its own.
Resolving the record
Once a resolver has been selected:
- Prepare the ABI-encoded calldata for the desired record function, such as
addr(namehash(name)). - Check whether the resolver supports interface 0x9061b923.
- If supported, call
resolver.resolve(dnsencode(name), calldata)and decode the returned bytes. - Otherwise, if the original requested name matches the name on which the resolver was found, call the traditional record function directly.
- If neither condition applies, resolution fails.
- Return the appropriately decoded result.
When the selected resolver belongs to an ancestor of the requested name, the client must not fall back to directly calling a legacy record function such as addr. Wildcard resolution requires the extended interface.
Pseudocode
The following example illustrates resolver discovery and record resolution.
function getResolver(name) {
for(let currentname = name; currentname !== ''; currentname = parent(currentname)) {
const node = namehash(currentname);
const resolver = ens.resolver(node);
if(resolver != '0x0000000000000000000000000000000000000000') {
return [resolver, currentname];
}
}
return [null, ''];
}
function resolve(name, func, ...args) {
const [resolver, resolverName] = getResolver(name);
if(resolver === null) {
return null;
}
const supportsENSIP10 = resolver.supportsInterface('0x9061b923');
if(supportsENSIP10) {
const calldata = resolver[func].encodeFunctionCall(namehash(name), ...args);
const result = resolver.resolve(dnsencode(name), calldata);
return resolver[func].decodeReturnData(result);
} else if(name == resolverName) {
return resolver[func](...args);
} else {
return null;
}
}The example first searches for a resolver and checks its extended interface support. A legacy direct call is permitted only for an exact resolver-name match.
This pseudocode is preserved from the original article. A complete implementation must supply the original name's node when required by the legacy record function, handle root-name traversal consistently with the specification, normalize names appropriately, and handle RPC errors and returned data correctly.
Rationale
Minimizing changes to existing systems
ENSIP-10 reuses existing namehash and registry mechanisms rather than introducing an entirely separate naming system. This reduces the implementation burden for clients and operators.
Supporting adoption through wildcard resolution
Wildcard resolution addresses the scalability problem associated with registering and configuring individual names for large numbers of users.
A parent resolver can implement application-specific naming rules, allowing services to offer ENS-compatible names without storing a separate resolver entry for every user.
Why the resolve function matters
The new resolve function receives both the unhashed, DNS-encoded name and the calldata for the requested record operation.
A resolver can therefore inspect individual labels rather than receiving only a namehash value.
For example, a resolver for names of the form id.nifty.eth could interpret the id label as a numerical token identifier and return the owner of the corresponding NFT.
This cannot be achieved from the namehash alone without additional information mapping the hash to its original labels.
Why DNS wire encoding is used
The DNS wire format provides several advantages:
- It supports efficient computation of namehash.
- Individual labels can be extracted or removed using their length information.
- It avoids repeatedly scanning dot-separated strings to identify label boundaries.
These properties can simplify on-chain name processing and reduce gas consumption in relevant resolver implementations.
Compatibility
Legacy clients implementing ENSIP-1 cannot resolve records that depend on wildcard resolution. ENSIP-10-compatible clients can continue resolving ordinary names through the appropriate resolution path.
The extended resolve function can be used for both wildcard and exact-name queries.
Legacy clients may still call individual record functions such as addr directly. Resolver developers should consider how those functions behave if compatibility with legacy clients is required.
Clients must not directly call legacy record functions on an ancestor resolver when resolving a different, descendant name. Doing so could produce incorrect results for resolvers that are not designed to answer wildcard queries.
Security
Clients must correctly handle names for which no resolver exists. Treating the zero address as a valid resolver or incorrectly selecting a resolver can lead to invalid or unexpected results.
Wildcard resolvers may also return valid addresses for names that users entered incorrectly. A typo could therefore resolve to an unintended destination rather than failing.
Applications should consider additional recipient validation and recovery mechanisms where appropriate. Users should verify the resolved destination before transferring assets.
Some applications may assume that an unconfigured subdomain cannot resolve. Wildcard resolution invalidates that assumption when a compatible parent resolver can provide a record for the subdomain.
Applications should distinguish the absence of an individual registry entry from the absence of a resolvable record.
Conclusion
ENSIP-10 extends ENS with wildcard resolution and a common extended resolver interface. It enables parent resolvers to answer queries for subdomains without individually configured resolvers while preserving the existing exact-name resolution path.
Questions are welcome via Twitter @cardene777.
Other publications:


