Glossary termNetwork defense technique

DNS Sinkhole

Also known as: Sinkhole server, DNS blackhole

DNS server configured to return false or blocked answers for selected domains, used to stop malware communication or block ads and trackers.

A DNS sinkhole is a Domain Name System resolver that deliberately gives incorrect answers for a list of domains, directing requests to a non-routable address or to a server controlled by defenders instead of the real destination. Because almost every internet connection begins with a DNS lookup, controlling those answers is an efficient way to stop devices on a network from reaching malicious or unwanted services, without installing software on each device. Sinkholes can be run inside an organization, by an internet provider or for a single household.

Security teams and researchers use sinkholes to disrupt malware and botnets: when infected machines try to contact a command-and-control domain, the sinkhole intercepts the request, cutting off the attacker and revealing which devices are infected. Coordinated takedowns often involve registries handing malicious domains over to sinkhole operators. In May 2017 researcher Marcus Hutchins slowed the WannaCry ransomware outbreak by registering a domain the malware checked before spreading, effectively turning it into a sinkhole that acted as a kill switch. Enterprises run internal sinkholes fed by threat intelligence lists.

The same technique powers network-wide ad and tracker blocking at home. Tools such as Pi-hole act as a local DNS server that answers queries for known advertising, tracking and malicious domains with a blank result, protecting every device on the network, including smart TVs and phones where browser extensions cannot be installed. Limitations include devices that use hard-coded or encrypted DNS resolvers to bypass local filtering, the risk of blocking legitimate sites and the fact that malware can avoid DNS altogether. Sinkholes are most effective as one layer of defense in depth.

Key points

  • A DNS sinkhole answers lookups for chosen domains with false or blocked results.
  • Sinkholing command-and-control domains cuts off malware and reveals infected devices.
  • WannaCry was slowed in 2017 when a researcher registered its kill-switch domain.
  • Home tools such as Pi-hole use sinkholing to block ads and trackers network-wide.

Related entries

Technology

Pi-hole

FOSSOPSECDevOps

Network-wide ad and tracker blocker that acts as a DNS sinkhole, filtering requests for every device on a home or office network.

Glossary term

Domain Name System

DevOpsCybersecurity

Hierarchical, distributed naming system that translates human-readable domain names into the numeric IP addresses computers use to find each other.

Glossary term

Botnet

Cybersecurity

Network of internet-connected devices infected with malware and controlled remotely by an attacker, often used for spam, fraud and denial-of-service attacks.

Glossary term

Malware

Cybersecurity

Software deliberately designed to disrupt, damage or gain unauthorized access to computers, networks or data, including viruses, worms and trojans.

Glossary term

Encrypted DNS

OPSECCybersecurity

Methods such as DNS over HTTPS and DNS over TLS that encrypt domain name lookups, hiding them from eavesdroppers on the network path.

Glossary term

Small file stored by a web browser that lets advertisers and analytics companies recognize the same user across websites to build behavioral profiles.

Glossary term

Threat Intelligence

CybersecurityOSINT

Evidence-based knowledge about cyber adversaries, their capabilities, tactics and indicators, used to anticipate, detect and respond to attacks.

Glossary term

Homelab

HardwareDevOpsAI

Personal computing environment used to experiment with servers, networking, virtualization and other technologies for learning, testing or self-hosting.

Featured in guides

Referenced by

Other entries that discuss or point to DNS Sinkhole.