Sticky Banner Visual Mobile 5

Lock in premium privacy for less: 2 years + 4 months at a special price.

Lock in 2 years + 4 months at a special price. Claim now!

Claim Now!
Sticky Banner Visual Mobile 3

Spring deal: Save up to 78% — Offer ends in

Spring Deal: Save up to 78%

Claim Now!

Expressvpn Glossary

DNS filtering

DNS filtering

What is DNS filtering?

Domain Name System (DNS) filtering is a security and access-control method that determines whether a device can reach a domain. With filtering in place, rather than resolving every request as usual, a DNS resolver or another enforcement point evaluates the domain and either returns the correct IP address or blocks the lookup.

DNS filtering is commonly used in home networks, workplaces, and public Wi-Fi to restrict access to malicious or inappropriate websites.

How does DNS filtering work?

Infographic DNS filtering at a glans.When a device goes to connect to a website, it must first perform a DNS lookup. Normally, the device asks a DNS resolver to translate the domain name into an IP address so it knows where to connect. The resolver handles this lookup and sends back an address, after which the browser connects to the site.

With DNS filtering enabled, the resolver evaluates the requested domain name before responding to the lookup. The domain is compared against filtering rules or threat-intelligence feeds.

If it’s permitted, the resolver returns the real IP address, and the device proceeds to load the website. If it’s blocked, the request is denied, and the user may see a warning page, a browser error, or another blocked-response message, depending on how the filter is configured.

Filtering doesn’t always occur at the resolver. Some networks apply DNS filtering at routers or network gateways, while endpoint software can enforce the same rules directly on devices. In each case, the decision still happens during the name lookup step.

Types of DNS filtering

DNS filtering can be implemented in several ways, depending on where the control is applied and how domains are evaluated. Common methods include:

  • Blocklist/allowlist filtering: Prohibits access to predefined lists of domains or only allows access to permitted domains.
  • Category-based filtering: Blocks domains associated with categories such as gambling, adult content, or social media.
  • Threat-intelligence filtering: Uses continuously updated threat-intelligence feeds to block domains associated with phishing and other threats.
  • Endpoint agent filtering: Relies on software installed on devices to enforce filtering regardless of network location.
  • Network resolver filtering: Uses a centralized resolver or router to apply rules to devices using that network’s DNS path

Why is DNS filtering important?

Many organizations turn to DNS filtering to block websites with objectionable content. Companies may seek to improve productivity by limiting access to social media or other non-work sites. Parents can also use it for a similar purpose, blocking specific sites or content categories.

Benefits and limitations of DNS filtering

DNS filtering provides protection at the domain lookup stage, but it also has technical constraints. The trade-offs are summarized below:

Benefits Limitations
Provides quick protection at the DNS stage Cannot inspect full URLs or page content
Enables centralized policy management across multiple devices Direct IP access may bypass domain-based filtering in some cases
Blocks phishing and malware command-and-control domains May lose visibility or allow bypass when devices use external encrypted DNS outside the organization’s control
Can extend coverage to unmanaged and personal devices, depending on the deployment method Offers less granular control than proxy or firewall inspection

Security and privacy risks

Because the decision to allow or block a domain occurs during name resolution, the device never contacts the destination server via normal DNS when a domain is blocked. These events may be logged for reporting or auditing by the filtering service or network administrator, depending on the product and configuration. This can raise privacy concerns for anyone using the network.

Blocking errors may disrupt legitimate services, and users sometimes attempt workarounds, such as switching to alternate DNS services or disabling protections, which can expose the device to additional security risks.

Further reading:

FAQ

Does DNS filtering stop phishing attacks?

Multiple Domain Name System (DNS) filtering methods can offer some protection against phishing attempts that rely on known or categorized malicious domains in filtering databases or threat-intelligence feeds. However, attackers frequently create new domains, so newly launched phishing sites may not be blocked immediately.

Can Domain Name System (DNS) filtering block apps and games?

Sometimes. If the app depends on specific domains, blocking those domains prevents devices from connecting. Offline apps, or apps that do not rely on blocked DNS lookups, may still function.

What’s the difference between DNS filtering and web filtering?

Domain Name System (DNS) filtering blocks at the domain lookup stage. Web filtering inspects traffic after a connection is established and can analyze pages, files, or URLs in detail.

How does encrypted Domain Name System (DNS) affect filtering?

Protocols such as DNS-over-HTTPS (DoH) encrypt lookups. Filtering still works when the encrypted resolver enforces policies, but third-party network monitoring becomes harder.

Can DNS filtering be bypassed?

Yes. Using alternative Domain Name System (DNS) servers, encrypted resolvers, or direct IP connections can bypass certain configurations unless additional controls are in place.
Get Started