Setting up DNS filtering for your office
DNS filtering blocks connections to known malicious and unwanted websites before they load. It is one of the simplest protections a small organization can add. This guide covers how it works, where to apply it and how to avoid common problems.

How DNS filtering works
Every time someone visits a website or an application connects to a service, the device first asks a DNS server to translate the name into an internet address. DNS filtering puts a security check into that step. If the name belongs to a known phishing site, malware host or another blocked category, the filter refuses to answer or sends the user to a block page instead.
Because almost everything on the internet starts with a DNS lookup, filtering at this point protects every application on the device, not just the web browser. It also stops many types of malware from reaching the servers that control them, which can prevent an infection from turning into a full incident.
Where to apply it
There are two main ways to deploy DNS filtering. Network-level filtering points your office router or firewall at a filtering service, so every device on the network is protected without installing anything. It is quick to set up and covers devices you cannot install software on, such as printers and smart TVs.
Device-level filtering uses a small agent on each laptop, so protection follows the device to home offices, hotels, field sites and coffee shops. For organizations with mobile or remote staff, a combination works best: the network setting covers the office, and the agent covers laptops wherever they go.
- Network level: protects everything in the office
- Device level: protects laptops anywhere
- Combine both for remote and mobile staff
- Include guest networks with their own policy
Choosing what to block
Start with security categories: phishing, malware, command and control servers, newly registered domains and known scam sites. These rarely block legitimate work and provide most of the protection. Newly registered domains are worth special mention, because many phishing campaigns use domains created only days before.
Content categories, such as gambling, adult content or streaming, are a policy decision rather than a security one. Some organizations block them to reduce risk and bandwidth use, while others prefer not to. Whatever you decide, write it into your acceptable use policy so staff know what to expect.
Handle the exceptions
Every filter blocks something legitimate eventually. A supplier's new website, a niche industry tool or a government portal might be miscategorized. Make it easy for staff to report a block and get a quick decision. The block page should explain what happened and how to ask for a review.
Keep an allow list of approved exceptions with a short reason for each, and review it occasionally. Avoid giving everyone the ability to bypass the filter, since that undoes its value.
Close the gaps
Some devices and browsers can use their own encrypted DNS services, which bypass your filter. Browser policies can turn off or redirect this feature on managed devices, and firewall rules can block outbound DNS to anywhere except your chosen service. Ask your IT provider to check both, otherwise the filter may be silently skipped.
Also make sure the filtering service itself is configured securely. Use multi-factor authentication on its admin console and limit who can change policies or add exceptions.
Use the reports
DNS filtering services keep a record of blocked requests. A sudden spike of blocks from one computer can be an early sign of infection, especially if it is trying to reach command and control servers. Set alerts for security-related blocks and have someone check them.
The reports also show which risky sites staff are encountering. If many people are hitting phishing sites from the same campaign, that is a cue for a quick reminder to the team about what to watch for.
- DNS filtering blocks malicious sites for every app, not just browsers.
- Combine network and device-level filtering to cover remote staff.
- Block encrypted DNS bypasses and watch the reports for infection signs.