DNS Infrastructure & Email Auth
DNS-over-HTTPS (DoH), Zone Record Mechanics, and Email Authentication
The Domain Name System (DNS) acts as the distributed directory of the Internet, resolving human-readable hostnames into IPv4 (`A`) and IPv6 (`AAAA`) addresses, mail routing servers (`MX`), authoritative zone delegations (`NS`), and security policies (`TXT`). A single misconfigured entry during server migration can take an entire production domain offline or trigger widespread email rejections.
Arostik's DNS Record inspector queries public DNS-over-HTTPS (DoH, RFC 8484) resolvers to retrieve `A`, `AAAA`, `CNAME`, `MX`, `TXT`, `NS`, `SOA`, `SRV`, and `CAA` records simultaneously, exposing remaining TTL counters and MX priorities without being skewed by your local workstation DNS cache.
Inspecting `TXT` records is essential for diagnosing email deliverability failures. Validating a single coherent `SPF` policy, active `DKIM` selector public keys, and an aligned `DMARC` record prevents domain spoofing and ensures compliance with strict bulk-sender requirements enforced by Gmail, Microsoft 365, and enterprise gateways.
During DNS provider migrations or server cutovers, verifying authoritative `NS` delegations alongside remaining TTL timers tells engineers precisely how long recursive caches worldwide will retain prior records before converging on new infrastructure.
Step-by-Step DNS & Email Troubleshooting Guide
Practical workflow to diagnose slow cutovers, CNAME apex conflicts, SPF 10-lookup limits, and DNSSEC SERVFAIL outages:
1. DNS records were updated, yet some users still load the old IP
Root cause: Recursive resolvers cache previous entries strictly until the old TTL counter (e.g., 3600s or 86400s) reaches zero.
Recommended resolution: Lower record TTL values to 300s 24 hours prior to migration, and verify propagation directly against your authoritative `NS` servers.
dig @ns1.your-provider.com domain.com A +noall +answer2. Outbound mail lands in Spam or fails with SPF PermError
Root cause: Multiple `v=spf1` TXT records exist on the domain, or nested `include:` mechanisms exceed RFC 7208's hard 10-DNS-lookup limit.
Recommended resolution: Merge all authorized senders into one single `v=spf1` record, prune unused vendor includes, and verify alignment across `_dmarc` and active DKIM selectors.
dig +short TXT domain.com && dig +short TXT _dmarc.domain.com3. DNS panel rejects adding a CNAME record on the root apex (@)
Root cause: RFC 1034 forbids a `CNAME` from coexisting with mandatory `SOA`, `NS`, or `MX` records at the zone apex.
Recommended resolution: Point the apex using `A`/`AAAA` records or a provider-managed `ALIAS` / `ANAME` / CNAME flattening rule, and reserve `CNAME` for subdomains such as `www`.
dig +short A domain.com && dig +short CNAME www.domain.com4. Domain returns SERVFAIL globally right after switching nameservers
Root cause: Stale DNSSEC `DS` records remain at the registrar pointing to old `DNSKEY` signatures from the previous provider.
Recommended resolution: Disable DNSSEC at the registrar prior to NS delegation changes, or publish updated `DS` hashes matching the new DNS host immediately.
dig +dnssec +multi DS domain.comRFC 1035 / RFC 8484 (DoH) / SPF-DKIM-DMARC / DNSSEC
RFC 1035, SOA Timers, SPF/DKIM/DMARC, and DNSSEC Trust Chains
Standard DNS behavior under RFC 1035 anchors every zone via its Start of Authority (`SOA`) record. Beyond managing primary-to-secondary zone transfers through `Refresh`, `Retry`, and `Expire` intervals, the SOA Minimum field bounds negative caching (`NXDOMAIN`, RFC 2308) so recursive resolvers avoid hammering origin servers for nonexistent hostnames.
Modern email authentication depends on cryptographic alignment across `SPF` (RFC 7208), `DKIM` (RFC 6376), and `DMARC` (RFC 7489). While `SPF` authorizes sending IP networks and `DKIM` signs message headers with a domain-hosted RSA/Ed25519 key, `DMARC` verifies identifier alignment against the visible `From:` address before enforcing `quarantine` or `reject`.
For integrity against cache poisoning, `DNSSEC` (RFC 4033–4035) attaches `RRSIG` cryptographic signatures to zone records and links delegation trust upward to the TLD parent via `DS` hashes, allowing recursive resolvers to mathematically detect forged responses on untrusted networks.
Pre-Migration DNS Audit Sequence
Verify current authoritative `NS` servers, lower `A`/`AAAA`/`MX` TTLs to 300 seconds 24 hours ahead, back up the full zone (`SPF`, `DKIM` selectors, `_dmarc`, `CAA`), and confirm zero orphaned `DS` records before cutting over.
Browser API Scope & Boundaries
Public DoH lookups show real-time resolver visibility; local OS caches, browser DNS caches, and ISP resolvers honoring long legacy TTLs may lag briefly until timers expire.
DNS Records & Email Authentication Glossary
Concise definitions for A, AAAA, CNAME, MX, TXT, SOA, SPF, DKIM, DMARC, and DNSSEC.
- Registro DNS A / AAAADNS
What is a DNS A and AAAA record?
An 'A' record maps human-readable domain hostnames to 32-bit IPv4 addresses; a 'AAAA' record resolves hostnames to modern 128-bit IPv6 endpoints.
- Registro MX (Mail Exchange)Correo
What is a DNS MX record?
Designates the destination mail transfer agents (MTAs) authorized to accept inbound email messages for a domain, prioritized by integer weightings.
- Registro SPF (Sender Policy Framework)Seguridad
What is a DNS SPF record?
A public TXT record publishing authorized outbound SMTP IP blocks permitted to originate email on behalf of a domain, curbing spoofing.
- Política DMARCCorreo
What is a DMARC policy?
An authentication policy aligning SPF and DKIM outcomes to command receiving inboxes whether to quarantine or outright reject fraudulent emails.
Frequently Asked Questions (FAQ)
How long does DNS propagation actually take?
DNS does not push globally—recursive caches retain old records until their prior TTL expires. Lowering TTL to 300s beforehand typically completes cutover within minutes.
Can a domain publish two separate SPF TXT records?
No. Publishing multiple `v=spf1` strings triggers an automatic `PermError` validation failure under RFC 7208; combine every mechanism into a single record.
How do MX priority numbers affect mail delivery?
Lower numeric values hold higher priority; sending MTAs attempt priority `10` servers first and fall back to `20` or `30` only when higher-priority hosts fail.
What does a DNS CAA record protect against?
CAA records restrict which Certificate Authorities are authorized to issue SSL/TLS certificates for your domain, stopping accidental or unauthorized misissuance.