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:
You should see your configured records in the ANSWER SECTION of the response.
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.)
Verify JSON syntax — Malformed JSON will prevent records from being served
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
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).
Solutions:
Ensure your NFD exists — The NFD must be minted and active
Check expiration — Expired NFDs return placeholder responses
Verify domain suffix — You must query
*.algo.xyzCheck for typos — Double-check the NFD name spelling
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 NXDOMAIN on a Deep Name
Symptoms: A deeply nested name (e.g. a.key.api.patrick.algo.xyz) returns NXDOMAIN 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.
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.
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"]
CNAME only for subdomains — You cannot use CNAME for the root (
@); use A record insteadCheck target exists — Verify the CNAME target domain is accessible
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