A dangling NS record is a DNS name server record that delegates a domain or subdomain to authoritative name servers that are no longer active or no longer controlled by the organisation. If the delegation is not removed, another party may be able to take control of DNS responses for that name, redirecting traffic or impersonating services.
What a dangling NS record actually changes
A dangling ns record is dangerous because DNS delegation can outlive the infrastructure or team that was meant to answer for it. If the old name servers are gone or no longer under your control, the delegation itself can become a trust boundary that someone else may exploit.
Unlike a simple typo in DNS, this is a control-plane problem: resolvers still follow the delegation, so the domain or subdomain can continue to appear valid even after the authoritative service has been abandoned. That is why dangling delegations are often treated as takeover conditions rather than routine misconfiguration.
How DNS delegation becomes a takeover path
NS records tell the DNS hierarchy which name servers are authoritative for a zone or subzone. When that delegation points at inactive or unowned servers, the zone owner may have effectively left an opening for an attacker to register or repurpose the matching DNS service and answer queries for that name.
In practice, the abuse can range from redirection of web traffic to impersonation of internal or customer-facing services. The security impact comes from the fact that downstream users, browsers, and integrations often trust DNS as the first step in reaching a service.
For a broader view of how dangling DNS conditions arise across subdomains and cloud services, see Subdomain Takeover and Dangling DNS Guide.
What to check when you suspect exposure
Exposure assessment starts with inventory. Organisations need a current list of delegated zones and subdomains, then a way to compare those delegations against active infrastructure, vendor-managed DNS, and any services that were decommissioned or migrated. Publicly reachable delegations deserve special attention because they are the easiest to weaponise.
Vendor documentation and cloud service records matter here because many dangling NS issues emerge during service retirement, DNS provider changes, or platform migrations. If a zone is delegated to a service that is no longer authoritative, the DNS record may still resolve somewhere, but not to the organisation's intended control plane.
Where response requires a structured cleanup sequence, the Subdomain Takeover Response Playbook is useful for validating ownership, removing stale delegation, and sweeping related DNS records.
Remediation, monitoring, and governance
The fix is to remove the stale delegation or reassign it to name servers you actually control, then confirm that the zone answers only from intended authoritative sources. If immediate removal is not possible, compensating controls should reduce the chance of abuse by narrowing trust relationships, reviewing dependent applications, and monitoring for suspicious DNS changes or unexpected resolution patterns.
Cleanup should extend beyond the record itself. Cookies scoped to broad parent domains, OAuth redirect lists, allowlists, and certificate or application trust assumptions can all amplify the impact of a takeover if they still include the affected name. Good governance treats DNS delegation as an owned asset with a lifecycle, not a set-and-forget configuration.
Practitioners should also retain evidence of the old delegation, the replacement control, and the validation step that proves the name is no longer dangling. That makes future audits and incident reviews materially easier.
Risk and Threat Considerations
A dangling NS record creates a control gap that can let an outside party answer for a name the organisation still expects to trust. The risk is especially material when the delegated subdomain is used for websites, APIs, redirects, or other services that inherit user trust from the parent brand.
Failure mechanism: A stale delegation keeps sending DNS queries to an authoritative endpoint that the organisation no longer operates, so an attacker who controls or reproduces that endpoint can serve chosen responses for the delegated name.
Impact: The result can include traffic redirection, service impersonation, credential harvesting, session abuse, and broader trust erosion if dependent systems continue to accept the compromised name as legitimate.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | CIS-1 — Inventory and Control of Enterprise Assets | Dangling NS records are found by inventorying owned DNS assets and delegated zones. |
| CIS-4 — Secure Configuration of Enterprise Assets and Software | Stale NS delegations are a configuration failure that can expose trustworthy names to takeover. | |
| Recommendation — Maintain an authoritative asset inventory of delegated zones and remove stale DNS entries. Enforce approved DNS configuration baselines and remediate unsafe delegation changes. | ||
| NIST SP 800-53 Rev 5 | CM-8 — System Component Inventory | DNS delegations must be tracked as components so abandoned name server references are identified. |
| SC-20 — Secure Name / Address Resolution Service (Authoritative Source) | This control directly addresses authoritative DNS source integrity for name resolution. | |
| Recommendation — Record delegated DNS assets in the component inventory and reconcile them routinely. Preserve authoritative DNS source integrity and remove or replace stale delegations promptly. | ||
| ISO/IEC 27001:2022 | A.5.9 — Inventory of information and other associated assets | Delegated DNS zones are information assets that need ownership and lifecycle control. |
| A.8.9 — Configuration management | Dangling NS records are an unsafe configuration condition requiring controlled change management. | |
| Recommendation — Track DNS delegations as information assets and review ownership changes when services are retired. Control DNS configuration changes so stale name server references are removed or updated safely. | ||
Practitioner Guidance
Why practitioners should care: Dangling NS records are often missed because the owning application may already be retired, but the DNS trust relationship remains live. That makes them a latent takeover path, not just a hygiene issue.
What to watch for: Pay attention to delegated subdomains that no longer correspond to an active platform, especially after migrations, mergers, cloud exits, or vendor changes. If the authoritative service disappears first, the delegation should be treated as a priority cleanup item.
Practitioner takeaway: Treat DNS delegation as part of asset lifecycle management, and verify that every NS record still points to infrastructure you can prove is under your control.
Related resources from NHI Mgmt Group
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 October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org