Dangling DNS: A Hidden Security Risk You Shouldn’t Ignore

watch 3m, 15s
views 2

09:09, 15.06.2026

Article Content
arrow

  • What is a Dangling DNS?
  • How Does DNS Dangling Happen?
  • Example 1:
  • Example 2:
  • What Are the Potential Risks of DNS Dangling?
  • How Can It Be Prevented?

Lots of online attacks can be solved with the help of software and some tools. The situation with dangling DNS is a little bit different and particularly relates to the lack of internal processes within the organization and human mistakes.

In this article, we will discuss processes connected with dangling DNS and some prevention mechanisms.  

What is a Dangling DNS?

Dangling DNS is a vulnerability that happens when DNS records show the removed or no longer user resource. At the same time, despite the possible removal of the domain, the DNS entry is not deleted or updated.

This situation creates risks when an attacker can use this situation and set up the resource at the unclaimed destination or even register the expired resource.

How Does DNS Dangling Happen?

Example 1:

Let’s start from the first example where is a subdomain that was previously used to send emails, but now it is non-functioning. This service isn’t used, and you have decommissioned the node and host, but somehow forgot to delete the CNAME.

This means that this forgotten record is dangling DNS, because it is impossible to control it. Because of such a vulnerability, hackers can use this situation for phishing or other attempts to attack. When the vulnerability is detected by such scammers, they give the Azure resource the same FQDN that was earlier used. From this point, all the traffic can be controlled by the hackers because of the CNAME. Via CNAME, all the DNS resources are transmitted to the 3rd party service.

Example 2:

Another case scenario relates to the subdomain that doesn’t exist but was previously used to send email to 3rd third-party company. The CNAME indicates the domain of a company that doesn’t exist. Because the domain has expired, it can be used by anyone.

Hackers can easily detect this information and use this domain. After that, they can own the old subdomain's DNS resources, including DKIM, A, and MX records.

What Are the Potential Risks of DNS Dangling?

In case the DNS record indicates the domain that isn’t available, the first step that should be done is its removal from the DNS zone. If that isn’t done, then there will be obvious consequences that we have already discussed in the above-mentioned examples.

Because the usage of the subdomains is legitimate, hackers can easily utilize malware or other malicious content. When the hacker gains power over the subdomain, it is possible to arrange everything as needed and even intercept requests. When real users visit this service, the attacker’s server gets session tokens, and that can lead to unauthorized access to the accounts of the users.

Subdomains that are used by hackers are very realistic and, in some situations, even DMARC cannot stop such illegal activity. Hackers can just utilize an authenticated subdomain.   

Another possible threat is when a hacker acquires an IP to intercept traffic. After the decommissioned of the specific domain, the information about its IP is still available. So attackers can use this IP and log requests.

Such malicious services can escalate to the following types of attacks:

  • MITM or Man-in-the-Middle Attack.
  • XSS or Cross-Site Scripting.
  • CSRF
  • CORS bypass.

How Can It Be Prevented?

There are several effective mechanisms that can help with the prevention of dangling DNS. Most of the recommendations revolve around the optimization of some fundamental processes.

  • Regular DNS audits. During the regular checks, it is possible to identify where all the entry points are controlled and active. Depending on the number of resources, such checks should be done at least once a quarter or more frequently, depending on the needs.
  • Monitoring of domain expirations. This should be a constant practice to prevent some major risks.
  • Decommissioning processes. During the decommissioning of the resources, it is highly important to delete all the associated DNS entries, and that should be done as soon as possible.
Share

Was this article helpful to you?

VPS popular offers

-10%

CPU
CPU
8 Epyc Cores
RAM
RAM
32 GB
Space
Space
200 GB NVMe
Bandwidth
Bandwidth
Unlimited
Keitaro KVM 32768
OS
CentOS
Software
Software
Keitaro

77.54 /mo

/mo

Billed annually

-15%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
80 Mbps
DDoS Protected SSD-wKVM 8192 Windows

101 /mo

/mo

Billed annually

-29.4%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
30 GB SSD
Bandwidth
Bandwidth
2 TB
KVM-SSD 2048 Metered Linux

17 /mo

/mo

Billed annually

-16.2%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
50 GB SSD
Bandwidth
Bandwidth
60 Mbps
DDoS Protected SSD-KVM 4096 Linux

67 /mo

/mo

Billed annually

-20.5%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
150 GB SSD
Bandwidth
Bandwidth
10 TB
KVM-SSD 16384 Metered Linux

95 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 8192 Linux

25.85 /mo

/mo

Billed annually

-10%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
30 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-KVM-SSD 2048 Linux

30.3 /mo

/mo

Billed annually

-7.9%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
200 GB HDD
Bandwidth
Bandwidth
300 Gb
wKVM-HDD HK 8192 Windows

26.1 /mo

/mo

Billed annually

-15.6%

CPU
CPU
2 Xeon Cores
RAM
RAM
512 MB
Space
Space
10 GB SSD
Bandwidth
Bandwidth
1 TB
KVM-SSD 512 Metered Linux

5.33 /mo

/mo

Billed annually

-8.8%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
400 GB HDD
Bandwidth
Bandwidth
300 Gb
wKVM-HDD HK 16384 Windows

45.91 /mo

/mo

Billed annually

Other articles on this topic

cookie

Accept cookies & privacy policy?

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the HostZealot website.