Join our Newsletter — 33% off our NHI Course

DNS-01 validation

DNS-01 validation is a method for proving control of a domain name by creating a specific DNS record. In certificate automation, the requester places a token in a TXT record, and a certificate authority checks it through DNS lookup before issuing the certificate. It suits wildcard and non-web service validation.

How DNS-01 Validation Works

DNS-01 validation is an ownership challenge, not a content check. The requester proves control by publishing a token in DNS, and the certificate authority verifies that the token is present and reachable through public DNS resolution before continuing issuance.

That design makes the validation channel independent of the website itself. It is especially useful when the domain is not serving a public HTTP endpoint yet, or when the requester needs to validate a wildcard certificate that cannot be completed with a simple browser-facing challenge.

Because the check depends on DNS propagation and authoritative visibility, DNS-01 is only as reliable as the zone control and record publication process behind it. If the token is missing, cached incorrectly, or added in the wrong place, validation fails even when the requester controls the domain administratively.

Why DNS-01 Is Used for Certificate Issuance

DNS-01 is common in certificate automation because it proves domain control without requiring a live web service. That matters for internal services, ephemeral infrastructure, and pre-production environments where HTTP-based validation would be awkward or impossible.

It is also a practical fit for wildcard certificates, since the CA is validating the domain’s DNS authority rather than a specific host path. In that sense, DNS-01 validates the right to request certificates for the namespace, not merely for one visible application.

The trade-off is that domain validation shifts trust to DNS administration. If DNS credentials or change processes are weak, an attacker who can alter records may be able to satisfy validation steps or interfere with issuance workflows.

For background on the registries and protocol identifiers that underpin DNS operations, see the IANA reference for Internet namespace coordination.

Common Failure Modes and Operational Dependencies

DNS-01 validation depends on accurate token placement, correct record name formatting, timely propagation, and the CA’s ability to query the authoritative DNS path. A single mismatch between the requested challenge and the published TXT record will break the flow.

Operationally, the biggest dependency is the DNS control plane itself. Automated certificate pipelines often need API access to DNS providers, so the validation outcome can fail because of permissions, rate limits, stale zone data, or an outage in the provider workflow rather than a problem with the certificate request.

Another subtle failure mode is split-horizon or delegated DNS complexity. If the wrong view is updated, the CA may not see the token that internal tooling believes it published, which can make the process appear inconsistent until the authoritative zone is checked directly.

Security Consequences and Where Control Loss Matters

DNS-01 is a trust assertion about domain control, so compromise of DNS administration can have immediate certificate consequences. If an attacker can insert or replace validation records, they may influence issuance workflows, block legitimate issuance, or create confusion during incident response.

Once certificate automation is in place, the DNS challenge becomes part of the identity and trust chain for services that rely on TLS. That means the security of the validation record, the DNS account, and the automation path all matter to the integrity of the resulting certificate lifecycle.

Good validation hygiene therefore depends on strong DNS ownership boundaries, careful automation permissions, and monitoring for unexpected TXT record changes during enrollment windows.

For broader application-security guidance on authentication and verification patterns, the OWASP ASVS provides useful verification context, and the OWASP Cheat Sheet Series offers practitioner guidance on secure operational handling.

Standards & Framework Alignment

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

OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP ASVS V10 — OAuth and OIDC DNS-01 underpins certificate-based validation used in secure service trust flows.
V12 — Secure Communication DNS-01 supports TLS certificate issuance for secure transport and domain trust.
Recommendation — Verify certificate issuance trust flows and ensure challenge-based validation is implemented consistently. Validate certificate enrollment paths that establish secure communication for the domain.
NIST SP 800-53 Rev 5 IA-9 — Identification and Authentication (Non-Organizational Users) DNS-01 helps prove domain control used in external-facing certificate authentication workflows.
IA-5 — Authenticator Management The DNS token behaves as validation material that must be protected during its short lifecycle.
AC-6 — Least Privilege DNS automation should only have the permissions needed to publish validation records.
Recommendation — Apply certificate-based authentication controls to the external service trust boundary. Protect validation tokens and restrict who can create or modify them during enrollment. Limit DNS update permissions to the minimum required for certificate automation.

Practitioner Guidance

Why practitioners should care: DNS-01 validation is only as trustworthy as the DNS change path behind it. Treat the DNS provider, zone ownership, and automation credentials as part of the certificate issuance control surface, not as separate plumbing.

What to watch for: Repeated validation failures often point to propagation delays, incorrect record names, or delegation issues, while unexpected record changes around issuance windows can indicate misuse of DNS access. Review DNS audit logs and certificate automation logs together when validation behaves inconsistently.

Practitioner takeaway: If certificate automation depends on DNS-01, protect DNS write access with the same care you apply to other high-trust issuance controls.