Subscribe to the Non-Human & AI Identity Journal

What should organisations do when DNS responses start changing unexpectedly?

Organisations should investigate resolver logs, compare expected and received IP addresses, and check for cache poisoning, man-in-the-middle activity, or misconfigured delegation. Unexpected DNS changes can indicate that users are being redirected to attacker-controlled infrastructure, so containment should begin with the name-resolution path.

Why This Matters for Security Teams

Unexpected DNS changes are not just a network hygiene issue. They can be the first visible sign that name resolution has been altered to support phishing, credential theft, traffic interception, or a broader compromise of the resolver path. Because DNS sits upstream of almost every application request, a small change in response behaviour can quickly affect users, services, and non-human identities that rely on stable endpoints.

This is especially important where machine-to-machine traffic depends on fixed service names, API endpoints, or control-plane discovery. If a resolver returns a different IP than expected, an agent, script, or service account may follow that destination automatically. The Ultimate Guide to NHIs notes that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, which is why DNS anomalies should be treated as an identity and trust problem as much as a networking one. Guidance from the NIST Cybersecurity Framework 2.0 reinforces the need to detect, analyse, and contain abnormal service behaviour before it spreads.

In practice, many security teams encounter DNS tampering only after users or workloads have already been redirected to attacker-controlled infrastructure.

How It Works in Practice

The first task is to establish whether the change is legitimate. Compare the resolved address against known-good records from authoritative DNS, internal configuration, service discovery inventories, and recent change tickets. Check whether the response differs by resolver, geography, time, or client network, because that pattern can point to cache poisoning, split-horizon misconfiguration, or on-path manipulation.

Once the discrepancy is confirmed, investigate the path end to end:

  • Review recursive resolver logs for unusual query volume, unexpected TTL changes, or repeated NXDOMAIN and SERVFAIL responses.
  • Validate delegation and zone transfer settings for the affected domain and any dependent subdomains.
  • Inspect security telemetry for certificate mismatches, new ASN or geo locations, and unusual outbound connections following the DNS change.
  • Check whether internal applications or automation use hard-coded IPs, stale records, or unauthenticated DNS lookups.

For organisations with mature identity controls, DNS response validation should be paired with workload identity and secret hygiene. If a service or agent is expected to reach a specific endpoint, the request should still be bound to a known identity, not just a name resolution result. The broader NHI guidance in the Ultimate Guide to NHIs is useful here because compromised secrets and over-privileged service identities often turn DNS redirection into a high-impact pivot. Current guidance suggests treating this as a containment event when the destination change is unexplained, even before a root cause is proven.

These controls tend to break down when applications trust DNS implicitly and lack independent endpoint validation, because a poisoned response can still be accepted as legitimate.

Common Variations and Edge Cases

Tighter DNS validation often increases operational overhead, requiring organisations to balance faster detection against the cost of maintaining accurate inventories and resolver baselines. That tradeoff becomes more visible in hybrid and multi-cloud environments where split-horizon DNS, service meshes, and external load balancers all influence what “expected” looks like.

There is no universal standard for this yet, but best practice is evolving toward combining DNS monitoring with identity-aware containment. For example, if a resolver starts returning a new IP, the response should be checked against the service’s allowed destinations, certificate chain, and runtime policy before any automation follows it. This is especially important for scripts, CI/CD jobs, and agents that can retry or chain requests automatically.

Edge cases also include legitimate failover, CDN rotation, and registrar changes. Those events can look suspicious, so organisations should maintain an explicit change calendar and clear ownership for each zone. Where critical workloads are involved, policies should require rapid verification of new records and temporary restriction of privileged access until the new path is validated. The key point is that DNS anomalies should not be dismissed as “just network noise” when they affect an endpoint used by identities, services, or automation.

For teams building a broader NHI control plane, the Ultimate Guide to NHIs and the NIST Cybersecurity Framework 2.0 together support the practical stance: verify the resolution path, validate the identity behind the request, and contain first when the change cannot be explained quickly.

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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 DE.CM-1 DNS changes are a detectable network anomaly that needs continuous monitoring.
OWASP Non-Human Identity Top 10 NHI-02 DNS redirection often exploits weak secret and identity controls.
NIST Zero Trust (SP 800-207) Unexpected DNS changes challenge implicit trust in destination names.

Monitor resolver and endpoint telemetry, then alert on unexpected name-resolution changes.