DNS_RECORD_MISSING
What DNS_RECORD_MISSING means, why DnsError throws it, what to show users and how to fix it in ensforge. Also covers retry safety and the actions that throw it.
DnsErrorNot retryable
@ensforge/sdk
What happened
The _ens TXT record is missing.
What to show users
| Title | Message | Action |
|---|---|---|
| DNS record missing | The required DNS TXT record was not found. | Add the TXT record at your DNS provider, then retry. |
How to fix
Add a TXT record _ens.<name> with the value "a=<owner address>".
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
dns.claim | when the name cannot be proven. |
Catch it
Errors.hasCode("DNS_RECORD_MISSING") narrows to this error. See Handle errors.
Was this page helpful?