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.
dig patrick.algo.xyz A
Test AAAA Record
dig patrick.algo.xyz AAAA
Test MX Records
dig patrick.algo.xyz MX
Test TXT Records
dig patrick.algo.xyz TXT
Test a Subdomain
dig www.patrick.algo.xyz CNAME
Test Bluesky Verification
Quick Test (Short Output)
Use +short for concise results:
NFD Segments (Subdomains)
If you own NFD segments (subdomains like mail.patrick.algo), their DNS records are automatically merged with the root NFD.
Segment must be owned by the same account as the root NFD
Root NFD records take priority if there's a conflict
Maximum depth: 3 labels (e.g., a.b.patrick.algo)
If you own both patrick.algo and api.patrick.algo:
Records set on api.patrick.algo will be served for api.patrick.algo.xyz
You can also set api records on patrick.algo if you don't have a separate segment
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
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.xyz
Check for typos — Double-check the NFD name spelling
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 instead
Check target exists — Verify the CNAME target domain is accessible