Router or Device? Where to Set Up DNS Ad Blocking at Home or Work
DNS filtering is one of the simplest ways to block adverts, trackers and malicious sites. You change two addresses and you are done. There is one decision to make first, though: where do you make that change? You can set
DNS filtering is one of the simplest ways to block adverts, trackers and malicious sites. You change two addresses and you are done. There is one decision to make first, though: where do you make that change? You can set it on your router, on each device, or both. The right answer depends on your home or office, and on how your devices move between networks.
This guide explains the trade-offs so you protect everything you mean to protect.
Why the location of your DNS setting matters
Every time a device opens a website or an app loads content, it first asks a DNS server to turn a name (such as an advert network's domain) into an address. A filtering DNS service like Deep Packet Filter (DPF) simply declines to answer for known advert, tracking, telemetry, malware and phishing domains. The unwanted content never loads.
The catch is that only devices that actually send their lookups to the filtering DNS server are protected. If a phone, TV or laptop is still using your internet provider's default DNS, it carries on as before. So the question is really: which devices will send their DNS lookups to the filter?
Option 1: set it once on your router
Your router normally hands out DNS settings to everything that connects to it. Change the DNS there, and every device on the network picks up the filtered servers automatically. DPF's own setup guide recommends this approach, because one change covers the whole household or office.
Why it works so well
- Covers devices with no DNS settings. Many smart TVs, games consoles and IoT gadgets offer little or no network configuration. Behind a filtered router, they are covered anyway.
- Catches in-app adverts. Adverts inside mobile apps, games and smart-TV apps are blocked across every device on the network at once.
- New devices are protected automatically. When a visitor joins your Wi-Fi or you buy a new tablet, there is nothing extra to configure.
How to do it
- Open a browser and go to your router's admin address, usually 192.168.1.1 or 192.168.0.1. The login details are often printed on the router label.
- Look for WAN Settings, Internet Setup or DNS Configuration. The exact location varies by brand.
- Enter your primary and secondary DPF DNS addresses.
- If there is an option to use automatic DNS from your provider, switch it off.
- Save. Your router may restart, and once it is back online every connected device is filtered.
Where it falls short
Router-level filtering only protects devices while they are connected to that router. A phone that switches to 4G or 5G, or a laptop taken to a cafรฉ, leaves the protected network behind. Some provider-supplied routers also restrict or hide the DNS settings. In that case you may need to set DNS on your DHCP server (common in offices) or on the devices themselves.
Option 2: set it on individual devices
Per-device setup makes sense when you cannot change the router, for example in a shared flat, a managed office or student accommodation. It also suits you if you only want to filter one or two machines. Each platform behaves slightly differently, and these are the quirks worth knowing:
- Windows 10 and 11: DNS is set per network adapter, under the IPv4 properties of your Wi-Fi or Ethernet connection.
- macOS: settings apply per connection, so you may need to repeat them for both Wi-Fi and Ethernet if you switch between the two.
- iPhone and iPad: DNS is set per Wi-Fi network. You will need to repeat it for each network you use, and remove any existing DNS servers listed.
- Android 9 and later: you can set DNS per Wi-Fi network, or use the Private DNS option with a DPF hostname if one has been provided. Private DNS applies system-wide, including on mobile data.
- Smart TVs: many models let you switch DNS from automatic to manual. If yours does not, filtering on the router is the fallback.
Step-by-step instructions for each platform are on the DPF DNS setup guide.
Router vs device at a glance
| Router | Individual device | |
|---|---|---|
| Devices covered | Everything on the network | Only the device you configure |
| Smart TVs and IoT | Covered automatically | Only if the device allows manual DNS |
| Away from home or office | Not covered | Depends on the platform (e.g. Android Private DNS) |
| Effort | One change | One change per device, sometimes per network |
| Needs router access | Yes | No |
The best of both: a layered setup
For most households the sensible answer is both. Set DPF on the router so the TV, consoles and every visitor's device are covered at home. Then add it to the devices that leave the house. On Android, Private DNS is the neatest way to do that, because it follows the phone onto mobile data.
Common snags and how to avoid them
- Enter both addresses. Use the primary and secondary addresses from your account ticket. If you leave an old provider address in the secondary slot, some lookups can slip past the filter.
- Watch for browser DNS settings. Some browsers can use their own encrypted DNS, which sidesteps whatever your router or operating system is set to. If adverts still appear in one browser but not in others, check its secure DNS setting.
- Check the right connection. On a Mac or iPhone, make sure you changed the settings for the connection you are actually using.
- Locked-down devices. If a device will not accept manual DNS, filter it at the router instead.
What about business networks?
In an office, DNS is usually handed out by a DHCP server. Configuring DPF there covers every workstation, phone and meeting-room screen in one go. DPF works on entire corporate networks, and it is also used by airlines on high-latency satellite, ATG and EAN links, where removing unrequested data improves responsiveness.
If you need to manage what is filtered for different users, DPF Commercial (ยฃ59 per month) gives you your own dedicated DPF instance. It includes an admin login and dashboard, white-list and black-list controls, and per-user service, social and content blocking, with priority 24/7 UK support. You can contact the team to get an instance set up.
Getting started with Deep Packet Filter
DPF Access costs ยฃ5.49 per month with no contract, or ยฃ54.90 a year. When you choose a plan, your primary and secondary DNS addresses arrive by email in your access ticket. Enter them on your router, your devices or both, and protection is active straight away. Adverts, tracking, telemetry, malware and phishing are blocked before they reach any device. If you get stuck, real UK engineers are available 24/7 on freephone 0808 304 8316.
See the plans and get started on the Deep Packet Filter home page.
Originally published at https://deepfilter.uk/blog/router-or-device-where-to-set-up-dns-ad.html
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.