Webmaster Resources All articles
Infrastructure & Hosting

Seven DNS Misconfigurations That Are Quietly Undermining Your Site's Reliability and Security

Webmaster Resources
Seven DNS Misconfigurations That Are Quietly Undermining Your Site's Reliability and Security

Most webmasters think about DNS exactly twice: when they first point a domain at a server, and when something goes catastrophically wrong. That gap in attention is precisely where reliability problems and security vulnerabilities take root. DNS operates below the application layer, out of sight of standard monitoring dashboards, which means misconfiguration can persist for months before anyone notices — and by then, the damage to deliverability, uptime, or brand trust may already be done.

What follows is a practical walkthrough of seven DNS mistakes that appear frequently in production environments, along with the tools and steps needed to identify and correct each one.

Mistake 1: Missing or Broken SPF Records

Sender Policy Framework (SPF) tells receiving mail servers which IP addresses are authorized to send email on behalf of your domain. Without a valid SPF record, your legitimate messages are far more likely to land in spam folders — and malicious actors can spoof your domain with minimal effort.

How to diagnose it: Run dig TXT yourdomain.com from a terminal or use MXToolbox's SPF checker (mxtoolbox.com). A valid record looks like: v=spf1 include:_spf.google.com ~all

Common errors: Multiple SPF records (you may only have one), exceeding the ten DNS lookup limit, or using -all (hard fail) before you have confirmed all sending sources.

Fix: Consolidate all sending sources into a single SPF record. Use ~all (soft fail) during initial deployment, then harden to -all once you have verified no legitimate mail is being rejected.

Mistake 2: DKIM Keys That Have Never Been Rotated

DomainKeys Identified Mail (DKIM) cryptographically signs outbound email, allowing recipients to verify that messages were not tampered with in transit. Many organizations set DKIM up once during initial configuration and never revisit it — leaving long-lived keys that represent a meaningful security exposure if your mail provider is ever compromised.

How to diagnose it: Query your DKIM record with dig TXT selector._domainkey.yourdomain.com, replacing selector with your provider's designated selector name (often google, s1, or default).

Fix: Rotate DKIM keys at least annually. Most major email platforms — Google Workspace, Microsoft 365, Mailchimp — provide self-service key rotation. After generating a new key, publish the new TXT record and allow propagation before decommissioning the old selector.

Mistake 3: No DMARC Policy (or a Policy Set to none Indefinitely)

DMARC builds on SPF and DKIM by giving domain owners a way to instruct receiving servers on what to do when messages fail authentication checks. A DMARC policy set to p=none is essentially an audit mode — it collects data but takes no protective action. Many administrators deploy it at none for initial monitoring and then forget to advance it.

How to diagnose it: dig TXT _dmarc.yourdomain.com should return a record beginning with v=DMARC1. If it returns nothing, or the policy value is none and has been for over ninety days, intervention is warranted.

Fix: Review your DMARC aggregate reports (the rua address in your record) to confirm all legitimate mail is passing. Then advance to p=quarantine and eventually p=reject. Tools like Postmark's DMARC Digests or Google Postmaster Tools can simplify report interpretation.

Mistake 4: Excessively High TTL Values on Records You Need to Change

Time-to-live (TTL) values control how long DNS resolvers cache a record before checking for updates. A TTL of 86400 seconds (24 hours) is common on legacy configurations. That sounds harmless until you need to migrate servers urgently or respond to an infrastructure incident — at which point you discover that a significant portion of your global user base will continue hitting the old IP address for the better part of a day.

Fix: For stable records on non-critical infrastructure, a 3,600-second TTL (one hour) is a reasonable default. For records associated with load balancers, CDN origins, or any infrastructure you might need to failover quickly, consider 300 seconds (five minutes). Critically, reduce TTL values before a planned migration — not during one.

Mistake 5: Dangling DNS Records Pointing to Decommissioned Resources

When a subdomain is created for a temporary campaign, a staging environment, or a third-party integration that is later cancelled, the DNS record frequently outlives the resource it referenced. These orphaned records — sometimes called dangling DNS entries — can be claimed by attackers who register the abandoned resource and thereby take control of your subdomain.

This vulnerability, known as subdomain takeover, has affected organizations including major US financial institutions and federal agencies.

How to diagnose it: Audit all DNS records in your zone file and verify that every CNAME and A record resolves to an active, controlled resource. Tools like dnsrecon, SubFinder, or the commercial platform SecurityTrails can accelerate this process.

Fix: Establish a decommissioning checklist that includes DNS record removal as a mandatory step before any infrastructure is retired.

Mistake 6: Relying on a Single DNS Provider Without Redundancy

Using only one DNS provider creates a single point of failure for your entire online presence. When that provider experiences an outage — as Dyn famously did during the October 2016 DDoS attack that took down Twitter, Reddit, and dozens of other major US services — your site becomes unreachable regardless of how robust your hosting infrastructure is.

Fix: Configure secondary DNS with a second provider. Most enterprise-grade DNS services support zone transfers or API-based synchronization. At minimum, ensure your registrar and your DNS host are separate entities, so a compromise of one does not automatically expose the other.

Mistake 7: Neglecting DNSSEC on High-Value Domains

DNSSEC (DNS Security Extensions) adds cryptographic signatures to DNS responses, making it significantly harder for attackers to execute cache poisoning attacks that redirect users to malicious servers. Adoption in the United States remains lower than it should be, partly because configuration is perceived as complex.

How to check: Use Verisign's DNSSEC Debugger (dnssec-debugger.verisignlabs.com) to inspect your domain's signing chain.

Fix: Most major registrars — Cloudflare, AWS Route 53, Google Domains — offer DNSSEC with guided configuration. For domains handling financial transactions, authenticated user sessions, or sensitive personal data, enabling DNSSEC should be treated as a baseline security control, not an advanced option.

Building a DNS Health Routine

DNS misconfigurations rarely announce themselves with a dramatic outage. They accumulate quietly, degrading email deliverability by a few percentage points here, creating a subdomain takeover window there, until the aggregate effect becomes impossible to ignore.

The most effective defense is a scheduled quarterly DNS audit. Export your full zone file, cross-reference every record against active infrastructure, validate your email authentication chain using free tools like MXToolbox and mail-tester.com, and review TTL values against your current operational requirements.

Treating DNS as a set-and-forget utility is one of the most common — and most correctable — mistakes in web infrastructure management. The diagnostic tools are free, the fixes are well-documented, and the reliability and security gains are immediate.

All Articles

Keep Reading

Compound Interest You Never Wanted: Recognizing and Reducing Technical Debt Before It Owns Your Codebase

Compound Interest You Never Wanted: Recognizing and Reducing Technical Debt Before It Owns Your Codebase

Auditing Your Web Stack: A Practical Guide to Retiring Deprecated APIs Before They Break Your Site

Auditing Your Web Stack: A Practical Guide to Retiring Deprecated APIs Before They Break Your Site

Self-Hosted vs. Managed Services: How to Know When It's Time to Hand Over the Keys

Self-Hosted vs. Managed Services: How to Know When It's Time to Hand Over the Keys