A DNS Server is a server that answers queries translating domain names into IP addresses, either as an authoritative server holding a zone's records or a recursive resolver querying on behalf of clients. Attackers poison caches, hijack records or tunnel data and command traffic through DNS. Defenders log queries, restrict recursion to intended clients and protect zone changes.
How a DNS server works
A DNS server sits in the name resolution path between users, applications, and the services they are trying to reach. Authoritative servers answer for a zone they own, while recursive resolvers look up answers on behalf of clients and cache results to reduce lookup time and load. That dual role is why DNS is both a core infrastructure service and a high-value control point.
Because every connection starts with a name lookup, DNS servers influence availability, routing, and trust. If the server returns the wrong address, times out, or is unreachable, the failure is often experienced as “the internet is down” even when the real issue is limited to resolution rather than the application itself.
Authoritative DNS versus recursive DNS
These two server roles solve different problems. An authoritative server is the source of truth for a domain or subdomain, so its records directly determine where clients go. A recursive resolver is a client-facing service that follows the DNS hierarchy, caches answers, and returns results quickly once it has learned them. Many environments use both, but they should be designed and governed differently.
The security implications also differ. Authoritative servers must protect zone data and zone-change workflows, while recursive resolvers must be tightly controlled because open recursion and weak cache handling can expose the organisation to abuse. A resolver that answers for everyone on the internet can become a vehicle for amplification, abuse, and policy bypass.
DNS records, caching, and delegation
DNS works through records such as A, AAAA, CNAME, MX, and TXT, plus delegation records that point one zone to another. Caching improves performance, but it also means stale or poisoned data can persist until the cache expires. Delegation is equally important because it defines which servers are trusted to answer for a namespace and where operational control changes hands.
Those mechanics make record integrity critical. A small change to an address record can redirect traffic, while a bad delegation can make an entire namespace dependent on the wrong servers. This is why DNS changes deserve change control, auditability, and careful separation between authoritative updates and resolver policy.
DNS as a security control point
DNS servers are not only about translation, they are also useful telemetry and enforcement points. Query logs can expose suspicious domains, fast-flux infrastructure, tunnelling behaviour, or repeated lookups for algorithmically generated names. Protective DNS controls can also block known-malicious destinations before a client connects, which makes DNS one of the few places where defenders can influence both visibility and reachability.
That makes DNS operationally valuable and adversary-attractive at the same time. The same path that reveals abusive lookups can be used to hide command traffic, so defenders need both logging and policy, not one without the other. For a practical overview of what to collect and how to detect abuse patterns, see the DNS Logging and Detection Guide.
Risk and Threat Considerations
DNS servers are attractive targets because they sit on a trusted path and can redirect large amounts of traffic with a single change. Attackers may poison caches, hijack records, abuse open recursion, or tunnel data through DNS when normal egress paths are restricted. If the server is authoritative, compromise can reshape where users and services connect; if it is recursive, compromise can mislead clients at scale.
Failure mechanism: DNS trust breaks when an attacker alters records, poisons cached answers, or turns the server into a covert transport channel. Weak recursion policy, poor change protection, or missing visibility makes those failures harder to detect and easier to sustain.
Impact: The result can be traffic redirection, data exfiltration, command-and-control reachability, service disruption, or broader compromise of adjacent systems that rely on DNS for bootstrap and discovery.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-7 — Boundary Protection | DNS resolvers and authoritative servers create trust boundaries that need controlled exposure. |
| AU-2 — Event Logging | DNS security depends on query and zone-change logging for detection and investigations. | |
| CM-5 — Access Restrictions for Change | Zone updates and server configuration changes directly affect DNS integrity and routing. | |
| Recommendation — Restrict recursion, limit exposure, and segment DNS roles behind controlled network boundaries. Log DNS queries and zone changes so suspicious resolution, tunnelling, and hijack attempts can be investigated. Restrict who can change DNS records and server settings, and require controlled approval for updates. | ||
| CIS Controls v8 | CIS-4 — Secure Configuration of Enterprise Assets and Software | DNS servers are high-value infrastructure that must be hardened and continuously maintained. |
| CIS-8 — Audit Log Management | DNS detection and post-incident review depend on reliable logs of queries and changes. | |
| Recommendation — Apply hardened baselines and monitor DNS servers for configuration drift and unnecessary services. Collect, retain, and review DNS logs so abuse patterns and compromise indicators remain visible. | ||
| OWASP ASVS | V16 — Security Logging and Error Handling | DNS logging and failure handling support detection and safe operational behaviour in security-sensitive services. |
| Recommendation — Ensure DNS-related events are logged and operational failures do not leak or distort security-relevant information. | ||
| MITRE ATT&CK | T1071.004 — Application Layer Protocol: DNS | DNS is a common protocol for command, control, and covert communication. |
| T1584 — Compromise Infrastructure | DNS servers and domains are often hijacked or abused as attacker infrastructure. | |
| Recommendation — Detect suspicious DNS traffic patterns that indicate command and control or tunnelling. Monitor for domain, delegation, and DNS infrastructure compromise that could turn your assets into attacker infrastructure. | ||
Practitioner Guidance
Why practitioners should care: DNS is one of the few enterprise services that can simultaneously affect availability, security monitoring, and user trust. Treat it as critical infrastructure, not just a utility, and manage it with the same discipline you apply to authentication or network control points.
Restrict recursive resolution to intended clients, protect zone updates with tight change governance, and review DNS logs as part of normal detection work. On Windows environments, baseline hardening of DNS roles and related configuration is particularly important, which is covered in Windows Server DNS and DHCP Security Guide. Where you need stronger controls around secure configuration and drift, the broader CIS Control 4 Secure Configuration of Enterprise Assets and Software Guide is a useful implementation reference.
For threat-hunting and response planning, correlate DNS activity with infrastructure abuse patterns and known attacker tradecraft. The T1584 Compromise Infrastructure guide is helpful when DNS servers, domains, or delegation paths themselves become part of an attacker's infrastructure.
Related resources from NHI Mgmt Group
- What happens when DNS rebinding is combined with Server-Sent Events in MCP environments?
- What is the difference between a domain controller and a DNS server?
- What happens when a private development server is exposed publicly without tight DNS and access controls?
- How do you patch or mitigate CVE-2020-1350 (Microsoft Windows DNS Server Remote Code Execution)?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org