How DNS Filtering Works
DNS lookups happen almost every time you do anything online. Your device, for example a phone or computer, asks a DNS resolver for the address of a name – such as example.com. This is where the DNS filter comes in – it sits at the resolver and checks the name before any answer is given.
- You click on a link, or an app tries to reach a domain.
- The device sends a DNS lookup for that domain to the resolver.
- The domain is checked by the filter against threat intelligence, website categories and the organisation's own block and allow lists.
- If the domain is allowed by the filter, then the resolver answers normally and the connection moves ahead.
- If it's blocked, the resolver refuses or redirects the lookup (for example to a block page). No connection will then be made.
Since the decision is made before any connection has been established, nothing from the blocked site ever reaches the device. From the user's perspective, the page just simply doesn't open.
What DNS Filtering Can Block
- Phishing sites that pretend to be your bank, your email provider or your company login
- Sites that try to get you to download malware
- Command-and-control domains, which infected devices use to get in touch with the attackers (also called botnet traffic)
- Newly registered or unknown domains – attackers often use these for campaigns that only last a short while
- Whole categories of content, for example gambling, adult content, streaming or gaming, if you want to enforce an acceptable-use policy
DNS Filtering vs Web Filtering and Firewalls
DNS filtering, web filtering and firewalls do overlap a bit, but they all work at different points.
| DNS filtering | Web proxy filtering | Firewall | |
|---|---|---|---|
| Decides on | The domain name | The full web address and page content | IP addresses, ports and protocols |
| When | Before the connection | During the connection | During the connection |
| Effect on speed | Very low: one lookup | Traffic passes through the proxy | Depends on the inspection |
| Best for | Blocking malicious and unwanted domains at scale | Fine-grained rules for specific pages | Controlling which systems can talk to each other |
Since DNS filtering can't see which page on an allowed site someone visits, it works best together with other controls. On the other hand it covers every app and browser on the device, and each check is just one quick lookup.
Where DNS Filtering Runs
- On the device, as an app or agent that sends the lookups to a filtering service. This means it has to be installed and kept updated on every single device.
- In the cloud, where a network or device is pointed at a filtering resolver. You often see this for office networks and Wi-Fi.
- In the mobile network, where the filter is applied to every SIM by the operator's own DNS infrastructure. Nothing needs to be installed on the device.
DNS Filtering for Mobile Devices
Phones and tablets are used pretty much everywhere – on the train, at a customer's site or at home. Since they're outside the office network most of the time, the filters there just don't reach them. Apps on the device can be removed or switched off, and IoT devices often can't even run them.
That's why we run our DNS filtering inside the mobile operator's network. Operators use it to protect all of their subscribers with Asavie Network Security, and businesses use it to filter content on company phones and tablets with Asavie Mobile. The service follows the SIM, so it can't be switched off by the users.

