Testing & Troubleshooting
Test and debug your NFD DNS configuration
After configuring your NFD DNS records, use this guide to verify they're working correctly and troubleshoot common issues.
Testing Your DNS Records
Use the dig command to verify your records are resolving correctly.
Test A Record
dig patrick.algo.xyz ATest AAAA Record
dig patrick.algo.xyz AAAATest MX Records
dig patrick.algo.xyz MXTest TXT Records
dig patrick.algo.xyz TXTTest a Subdomain
dig www.patrick.algo.xyz CNAMETest Bluesky Verification
Test IPFS DNSLink:
Quick Test (Short Output)
Use +short for concise results:
NFD Segments (Subdomains)
A segment (e.g. api.patrick.algo) is its own NFD with its own owner, and it always serves its own DNS records. How a segment combines with the root NFD depends on ownership. See the Subdomain and Delegation Model for the full explanation; the table below is a quick reference.
Rules
If no segment NFD is minted, the root NFD serves the subname (set an
apirecord onpatrick.algo).If a segment is owned by the same account as the root, the two are merged and root records win on a conflict.
If a segment is owned by a different account, the segment is authoritative—the root's records pointing into it are ignored.
Maximum depth: the
.algoname may have at most 4 labels, not counting leading_-prefixed service labels (e.g.key.api.patrick.algoresolves;a.key.api.patrick.algois rejected).
Quick reference
Root only, api record on patrick.algo
api.patrick.algo.xyz
root's api record
Segment api.patrick.algo, same owner, conflicting @/api
api.patrick.algo.xyz
root's record (root wins)
Segment api.patrick.algo, same owner, only segment has AAAA
api.patrick.algo.xyz AAAA
segment's record (merged)
Segment api.patrick.algo, different owner
api.patrick.algo.xyz
segment's own record (root ignored)
Segment exists but defines no records
api.patrick.algo.xyz
placeholder
Troubleshooting
Records Not Showing Up
Symptoms: dig returns no answer section or old data.
Solutions:
Wait a few minutes — There's caching at multiple levels (your local DNS, the resolver, etc.). The NFD resolver caches blockchain lookups for about a minute, and resolvers cache on top of that.
Verify JSON syntax — Malformed JSON will prevent records from being served
Verify each record's value, not just the JSON — One unparseable value makes the whole name fail with SERVFAIL rather than skipping just that record. A malformed CNAME is the worst case, since it takes down every record type at that name.
Check name format — Use
@for the root domain, or a bare subdomain name (e.g.,www,grafana)Confirm NFD version — DNS requires NFD v3 or higher
Check the NFD isn't listed for sale or expired — either one replaces all your records with the placeholder A record
Check for a CNAME at the same name — a CNAME next to other records is served as an alias, so a
CNAMEquery there returns nothing and anAquery returns addresses without the CNAME (see Apex CNAME Alongside Email or Verification Records)Watch the trailing dot — A name with a trailing dot that isn't inside your NFD's zone (e.g.
_test._tcp.) is re-rooted under your NFD, so it serves at an unexpected place like_test._tcp.patrick.algo.xyz. Use the@orsubdomain.@form to be explicit.
Getting NXDOMAIN
Symptoms: dig returns NXDOMAIN (domain does not exist).
NXDOMAIN means the name has no records of any type. If the name exists but has no record of the type you asked for, you get NOERROR with an empty answer section (NODATA) instead — that's the normal "wrong record type" result, not an error.
Solutions:
Check the
namefield spelling — NXDOMAIN onsub.patrick.algo.xyzusually means you have no record namedsub(orsub.@) at allEnsure your NFD exists — The NFD must be minted and active
Verify domain suffix — You must query
*.algo.xyzCheck for typos — Double-check the NFD name spelling
Wait, if the NFD is brand new — not-found results are cached briefly, so a freshly minted NFD can keep returning NXDOMAIN for a short period
Subdomain Returns Someone Else's Records
Symptoms: A subdomain like api.patrick.algo.xyz returns records you didn't set, and your root NFD's api record is ignored.
Cause: api.patrick.algo has been minted as a separate segment NFD owned by a different account. A different-owner segment is authoritative for its own subtree, so it serves its own records and any record you set on the root NFD pointing into that subtree is ignored. See the Subdomain and Delegation Model.
Solutions:
Check segment ownership — If you (or the same account) own both the root and the segment, the segment is merged and your root records win on a conflict.
Set records on the segment — To control a segment owned by a different account, edit that segment's NFD directly.
Name Rejected or SERVFAIL on a Deep Name
Symptoms: A deeply nested name (e.g. a.key.api.patrick.algo.xyz) returns SERVFAIL or never resolves.
Cause: The .algo name exceeds the depth limit. A query name may have at most 4 labels, not counting leading _-prefixed service labels. Over-deep names return SERVFAIL rather than NXDOMAIN, which resolvers retry — so this looks like an outage rather than a configuration mistake.
Solutions:
Flatten the name —
key.api.patrick.algo(4 labels) resolves;a.key.api.patrick.algo(5 labels) does not.Service labels are exempt — Underscore-prefixed labels like
_http._tcpdon't count toward the limit, so_http._tcp.api.patrick.algois fine.
Hosting Platform Won't Verify Your Domain
Symptoms: Vercel, Netlify or a similar platform rejects your NFD domain, or asks you to prove ownership of algo.xyz itself.
Cause: These platforms use the Public Suffix List (PSL) to decide what counts as a registrable domain. Until algo.xyz is on the PSL, they treat algo.xyz as the registrable domain and patrick.algo.xyz as a mere subdomain of it — so they ask for proof of ownership of the apex, which no NFD holder can provide.
This is not a DNS misconfiguration. Your records can be entirely correct and the verification will still fail.
Solutions:
Check whether the platform offers an alternative verification method — some accept a TXT record challenge on the subdomain itself rather than apex ownership
Wait for PSL inclusion — a submission for
algo.xyzis pending. Once accepted, propagation to browsers and platforms follows their own update schedules, which can take weeks or months.
Email Not Working
Symptoms: Emails to your domain bounce or don't arrive.
Solutions:
MX record format — Priority number must come before the hostname:
Correct:
"10 mail.example.com."Wrong:
"mail.example.com. 10"
Trailing dot — MX hostnames must end with a period:
Correct:
"10 mail.example.com."Wrong:
"10 mail.example.com"
Add SPF record — Most email providers require SPF:
Add DKIM — Check your email provider's documentation for required DKIM records
Check DMARC — Some providers require DMARC policy
SSL Certificate Issues
Symptoms: Certificate Authority won't issue a certificate.
Solutions:
Check CAA records — If you have CAA records, ensure they authorize your CA:
Remove restrictive CAA — If unsure, you can remove CAA records to allow any CA
Wait for propagation — Some CAs cache DNS results; wait and retry
CNAME Not Working
Symptoms: Subdomain doesn't redirect to target.
Solutions:
Use trailing dot — Target hostname must end with a period:
Correct:
["myapp.vercel.app."]Wrong:
["myapp.vercel.app"]
Never use
@as the target —@is expanded only in thenamefield. As a target it means the DNS root, so"rrData": ["@"]points the record at.instead of at your NFD. It parses without error, so the breakage is silent. Write the target out in full:["patrick.algo.xyz."].Check target exists — Verify the CNAME target domain is accessible. If the target can't be resolved, the query returns SERVFAIL so resolvers retry rather than caching an empty answer.
Check for a CNAME loop — A CNAME pointing at its own name (e.g.
@→patrick.algo.xyz.), two.algonames pointing at each other, or a chain longer than 8 hops returns SERVFAIL.
Apex CNAME Alongside Email or Verification Records
Symptoms: You have a CNAME at @ plus MX or TXT records there, and:
dig patrick.algo.xyz Areturns addresses but no CNAME linedig patrick.algo.xyz CNAMEreturns nothingYour hosting dashboard (Vercel, Netlify, …) reports the domain as misconfigured, even though the site loads
Cause: This is expected. Standard DNS forbids a CNAME sharing its name with other records, so NFD DNS serves it as an alias instead: A/AAAA come from the CNAME target but are returned under your own name, and MX, TXT and other types come from your stored records. Your email and verification records keep working. See CNAME next to other records.
Solutions:
Nothing, if the site and email work — the dashboard warning is cosmetic.
Use an A record at the apex if your host offers a fixed IP (Netlify:
75.2.60.5) — this satisfies dashboards and lets CDN hosts pick an edge near your visitors rather than near the DNS server.Move the CNAME to a subname — e.g. put it on
www, where it is the only record and is served as a normal CNAME.
Resources
NFD Web App: app.nf.domains
NFD API Documentation: api-docs.nf.domains
nfd-coredns (open-source resolver): github.com/TxnLab/nfd-coredns
Docker Image: txnlab/nfd-dns —
txnlab/nfd-dns:latestTxnLab Resolver: txnlab.dev
Nodely Resolver: nodely.io
Last updated
