DNS Misconfigurations: How Attackers Exploit Them

DNS Misconfigurations - How Attackers Exploit Them

Quick Summary

A DNS misconfiguration is any record or setting that reveals more than you meant to, or points at something an attacker can claim. Dangling CNAMEs, open zone transfers, a DMARC policy stuck at p=none and resolvers that answer the whole internet are the usual suspects. Attackers use them to take over subdomains, spoof your email and map your network. All of it is visible from outside, so test it from outside.

Think of DNS as your company’s public phone book. Attackers read every page. One DNS misconfiguration can give an outsider a trusted subdomain, a list of internal hosts, or an email that looks like it really came from your finance team.

Most of these mistakes are boring. A vendor got replaced. A cloud migration left old records behind. Someone made a change at 6 p.m. on a Friday. These gaps are visible to anyone who looks, and attackers look first, which is why external attack surface scan services start from the outside.

What Counts as a DNS Misconfiguration

DNS turns a name like portal.example.com into the server behind it. A misconfiguration is a record or setting that no longer matches reality, or one that says too much.

Records still pointing at deleted cloud resources count. So do name servers that answer anyone, missing SPF or DMARC records, and a registrar login guarded by one password. Your website keeps loading through all of it. That is exactly why misconfigured DNS can sit untouched for years.

How Attackers Find Misconfigured DNS

Recon comes first. DNS makes it easy.

Passive DNS services keep years of historical lookups, so a subdomain your team forgot long ago is still searchable. Certificate transparency logs (crt.sh is the usual stop) list every public TLS certificate you have ever issued, and with them names like vpn, staging and dev-old.

Then the tooling takes over. A wordlist of a few thousand common names gets fired at your domain, and every hit is resolved and checked. Where does it point? Who hosts it? Does that host still answer? An hour of this often produces a better map than your own asset inventory. The forgotten names are what attackers want, because nobody is watching them.

Common DNS Misconfigurations Attackers Exploit

Dangling Records and Subdomain Takeover

Here’s the classic. Marketing spins up a campaign page on a cloud host, the campaign ends, the app gets deleted. The CNAME stays. Now promo.example.com points at a resource name that anyone can register.

An attacker registers it. Their content now loads under your domain, with your domain’s trust. That means phishing pages that pass a glance at the address bar, cookies scoped to the parent domain that can be read, and the occasional defacement that ends up in a screenshot on social media.

Open Zone Transfers

Zone transfers (AXFR) let a secondary name server copy records from the primary. Fine. The problem is a server that hands the zone to anyone who asks. One command, something like dig axfr example.com @ns1.example.com, and an attacker has every hostname you publish, test boxes and naming conventions included.

Weak or Missing Email Authentication

SPF, DKIM and DMARC tell receiving mail servers who is allowed to send as you. Skip them, or leave DMARC at p=none indefinitely, and anyone can send mail that appears to come from your exact domain.

Business email compromise feeds on this. A fake wire request from the CFO’s real address beats one from a look-alike domain every time.

Open Resolvers

A recursive resolver open to the internet is a gift to DDoS operators. They send small spoofed queries, your server returns large answers to their victim, and your bandwidth pays for the attack. Open resolvers can also be fed forged answers, which can quietly send your own users to the wrong servers.

Stale Records That Expose Internal Hosts

Some public records point at private IP ranges or name internal systems outright. That alone won’t get anyone inside. But once someone has a foothold from a phishing email, those names save them hours of guessing.

Weak Registrar and DNS Account Security

Why bother with records at all? Compromise the registrar or DNS hosting account and you control the whole domain. Redirect the website. Reroute the mail. Get certificates issued in the company’s name. No MFA and no registrar lock make this the shortest path of all.

What a DNS Misconfiguration Can Cost

Different records fail in different ways, but the theme repeats: your own brand gets turned against you. A hijacked subdomain hosts phishing that looks legitimate. A spoofed email triggers a payment.

Lose the domain itself and the website and email can go dark together. In regulated industries, any of these can become a reportable incident, with notification deadlines and audit findings close behind.

How to Find and Fix DNS Misconfigurations

Start with an honest inventory. Every domain, every subdomain, including the ones marketing, agencies and individual teams set up without telling IT.

  • Clean up dangling records: delete anything pointing at a resource you no longer control, and add a DNS step to every decommissioning checklist.
  • Restrict zone transfers: allow AXFR only to your named secondary servers.
  • Enforce email authentication: publish SPF and DKIM, watch DMARC reports for a few weeks, then move to quarantine or reject.
  • Close open resolvers: recursion is for internal clients only.
  • Lock down DNS accounts: MFA, registrar lock and a short list of people who can change records.
  • Monitor continuously: alert on new subdomains, record changes and new certificates for your domains.

Internal reviews help, but they only show what you believe is published. Testing from outside shows what is actually there, including records nobody remembers creating.

Frequently Asked Questions

Can a DNS Misconfiguration Be Exploited Without Access to Our Network?

Yes. Nearly every DNS weakness can be abused from the outside, because DNS is public by design. To check your own exposure, query your records from a network outside your organization, which shows what an outsider could read, claim or spoof without any internal access.

Quarterly at a minimum, and every time a service, vendor or cloud resource is retired. Decommissioning is when dangling records appear. Tie DNS cleanup to your change tickets instead of waiting for an annual audit to find the leftovers.

No. With DMARC at quarantine or reject, they stop spoofing of your exact domain. Look-alike domains are a separate problem. Pair strict email authentication with monitoring for newly registered domains that imitate your brand.

Find these gaps before an attacker does. Our external attack surface scan services map your DNS, flag misconfigured records and show you what to fix first, and you can contact our team to talk through the results. For related reading, see how stolen credentials surface through a dark web breach monitor and why offensive vs defensive security both matter.

Wait — see what attackers see, BEFORE they do.

OFFENSIVE SECURITY INTELLIGENCE PLATFORM

**NO CREDIT CARD REQUIRED**