A DNS sinkhole is a security mechanism that prevents users or infected devices from reaching known malicious domains by redirecting their DNS requests to a controlled destination.
Normally, when your computer requests example.com, DNS finds the IP address associated with that domain.
A DNS sinkhole changes that process for domains known to be dangerous.
How does a DNS sinkhole work?
Imagine malware on an employee’s laptop trying to contact a command-and-control server at:
bad-domain.example
Instead of returning the attacker’s real server address, the organization’s DNS system recognizes the domain as malicious and redirects the request to a safe destination.
The malware has effectively reached a dead end.
CISA describes DNS sinkholing as a way to redirect clients trying to reach malicious domains toward a benign destination, helping block command-and-control communication.
DNS sinkholes can also detect infections
Blocking traffic isn’t their only advantage.
Security teams can monitor DNS sinkhole logs and identify devices repeatedly attempting to contact malicious domains. That can reveal an infected endpoint that might otherwise remain unnoticed. CISA specifically recommends sinkhole monitoring and logging for this reason.
Does a DNS sinkhole stop every attack?
No.
Malware might communicate directly with a hard-coded IP address instead of resolving a domain. Incorrect threat intelligence can also cause legitimate domains to be blocked.
DNS caching matters too. If a malicious address was already cached, a newly created DNS sinkhole rule may not take effect until the existing DNS TTL expires.
That makes a DNS sinkhole one layer of security rather than a complete security system.
Its biggest strength is simple: DNS happens early in many network connections, so stopping a malicious domain at the DNS layer can prevent the connection before it ever begins.