Subscribe to the Non-Human & AI Identity Journal

Zone File

A zone file is the record set that defines how a domain behaves, including where web, email, and verification traffic should go. If the zone file is inaccurate or stale, the domain can still resolve, but it may point users and systems to the wrong service or expose abandoned infrastructure.

Expanded Definition

A zone file is the authoritative record set for a domain’s DNS zone, and it determines how requests are routed for web, mail, verification, and other services. In NHI operations, it also influences where tokens, callbacks, certificate validation, and service discovery traffic land.

Zone files are not just routing tables. They can expose operational intent through NIST Cybersecurity Framework 2.0-relevant infrastructure choices, such as deprecated endpoints, shadow services, or third-party dependencies. For agentic systems and service accounts, a stale record can quietly redirect machine-to-machine traffic even when the domain still appears healthy to users.

Definitions vary across vendors on whether a hosted DNS console, registrar panel, or infrastructure-as-code source is the “real” zone file. For governance, the operative question is which record set is authoritative at the moment of resolution. The most common misapplication is treating DNS as a one-time setup task, which occurs when records are left unchanged after service migrations, decommissioning, or identity workflow changes.

Examples and Use Cases

Implementing zone file control rigorously often introduces change-management overhead, requiring organisations to weigh faster deployment against the risk of misrouting sensitive traffic.

  • Updating MX and SPF-related records when an organisation migrates email services, so automated mail flows do not fail or leak through old providers.
  • Maintaining verification and callback records used by APIs, OAuth flows, and security tools, where an outdated CNAME can break service trust chains.
  • Removing abandoned A or AAAA records after application retirement, reducing exposure to forgotten infrastructure that could be reactivated or hijacked.
  • Managing DNS records for non-human identities documented in the Ultimate Guide to NHIs, where service accounts and automation depend on stable domain resolution.
  • Using version-controlled DNS changes alongside platform guidance such as NIST Cybersecurity Framework 2.0 to support review, rollback, and change attribution.

In practice, a zone file becomes a control point for both service continuity and identity assurance. When records are tied to machine workflows, even a small typo or orphaned entry can create a security incident rather than a simple outage.

Why It Matters in NHI Security

Zone files matter because they shape the reachability of systems that non-human identities depend on. If a record points to an old load balancer, retired verification service, or unmanaged subdomain, tokens and automation may still reach something, just not the intended thing. That creates conditions for interception, failed authentication, and exposure of abandoned infrastructure.

This is especially important in environments where service accounts, API keys, certificates, and agent callbacks rely on DNS for trust establishment. NHI Mgmt Group reports that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, which makes DNS accuracy part of identity security, not just network hygiene. The same research also shows that 96% of organisations store secrets outside of secrets managers in vulnerable locations, increasing the impact when DNS misconfiguration exposes those systems.

Zone file governance should therefore include ownership, review cadence, change logging, and decommissioning checks. A record set that lingers after a platform change can become an attacker’s easiest entry point. Organisations typically encounter the significance of zone file accuracy only after a failed cutover, spoofed verification, or exposed legacy host, at which point the term becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-63 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.DS DNS record integrity supports protecting data-in-transit and service routing.
OWASP Non-Human Identity Top 10 NHI-04 Stale DNS records can expose abandoned NHI-linked infrastructure and endpoints.
NIST SP 800-63 DNS-backed verification and federation flows depend on trustworthy domain records.

Validate domain records used for authentication and verification before any identity workflow change.