![]()
Blocking ads and trackers in your web browser is easy enough. But what about all the other apps on your phone? And how do you block ads on a smart TV?
One option is AdGuard DNS, a DNS service that filters advertising and tracking domains. You can use it on individual devices or configure it on your router. And you don’t need to install an app, create an account or pay for a subscription.
How does AdGuard DNS work?
When you visit a website, your computer uses DNS (Domain Name System) to look up the IP address associated with the domain name. The same thing happens when an app tries to connect to an advertising or tracking service. If the DNS server blocks the lookup, the app doesn’t get the address it needs to make that connection.
It’s similar to what you can do with the hosts file on Linux or macOS. The nice thing about using a DNS service is that you don’t have to maintain a list of domains on each device.
AdGuard provides three free public DNS configurations:
- Default: blocks known ads, trackers, malware and phishing domains.
- Family protection: also blocks adult websites and enables SafeSearch and restricted modes on supported services.
- Nonfiltering: no content filtering.
Here are the IPv4 addresses for each configuration:
| Configuration | Primary DNS | Secondary DNS |
|---|---|---|
| Default | 94.140.14.14 |
94.140.15.15 |
| Family protection | 94.140.14.15 |
94.140.15.16 |
| Nonfiltering | 94.140.14.140 |
94.140.14.141 |
If you’re also using IPv6, here are the corresponding addresses:
| Configuration | Primary DNS | Secondary DNS |
|---|---|---|
| Default | 2a10:50c0::ad1:ff |
2a10:50c0::ad2:ff |
| Family protection | 2a10:50c0::bad1:ff |
2a10:50c0::bad2:ff |
| Nonfiltering | 2a10:50c0::1:ff |
2a10:50c0::2:ff |
NOTE: Changing the DNS server addresses doesn’t necessarily encrypt your DNS requests. AdGuard also supports DNS over HTTPS (DoH), DNS over TLS (DoT) and DNS over QUIC (DoQ). Use encrypted DNS if your device supports it.
How to set up AdGuard DNS
Before you change anything, make a note of your current DNS settings. If something stops working (e.g. a local network service or a public WiFi login page), you’ll want to be able to restore them.
Android
If you’re running Android 9 or later:
- Open Settings and look for Private DNS under your network settings.
- Select Private DNS provider hostname.
- Enter
dns.adguard-dns.comand save your settings.
That’s it. You’re now configured to use DNS over TLS. For Family protection use family.adguard-dns.com instead. To undo the change, restore your previous Private DNS setting.
iPhone, iPad and Mac
If you’re running iOS 14, iPadOS 14 or macOS Big Sur (or later), go to the AdGuard public DNS page. Select your OS and the DNS configuration you want to use, download the profile and install it through your device’s settings.
There’s also a profile constructor that lets you choose between DoH and DoT and exclude specific domains or WiFi networks. Quite useful if, for example, you need to resolve local domains on your work network. If you want to stop using AdGuard DNS, remove the profile.
Windows, Linux and web browsers
On Windows and Linux you can enter the IP addresses above in your network settings. Windows 11 supports DoH. On Linux, how you set up encrypted DNS depends on your distro and DNS resolver.
If you only want to use AdGuard DNS in your browser, look for the DNS over HTTPS settings and, if your browser supports custom providers, use the following URL:
https://dns.adguard-dns.com/dns-query
This will not change the DNS settings for the rest of your system.
Your router
Instead of configuring a bunch of devices individually, you can configure AdGuard DNS on your router. Especially useful for smart TVs and game consoles. How you do this, and whether you can use encrypted DNS, depends on your router. If it distributes DNS settings to your devices, make sure it uses the corresponding filtering addresses for IPv6 too.
NOTE: Some devices, apps and browsers use their own DNS resolver regardless of what you’ve configured on your router. For device and router specific instructions, check out AdGuard’s setup page. Once you’ve configured it, visit the AdGuard test page to see if your browser is using AdGuard DNS.
Why use Private AdGuard DNS?
The problem with the public DNS servers is that you have no control over their blocklists. Say an app you need stops working because one of its domains is blocked. You can’t just whitelist that domain and carry on using the public filtering service.
With Private AdGuard DNS you can. Create an account, set up a DNS server (a configuration managed by AdGuard, not a server you need to host) and connect your devices. You can have different configurations for different devices. For example, use one server for your own devices and another for your kids’ devices.
Depending on your plan, you can enable/disable blocklists, add your own blocking and allowlist rules, restrict online services, configure parental controls and schedules (including SafeSearch where supported), and manage access to your DNS servers.
Perhaps the most useful feature is the query log. Instead of trying to guess why an app doesn’t work, you can see which domains it requested and which ones were blocked, along with device information and DNS statistics. If you’re sure a blocked domain is safe, allow it. Keep in mind that DNS responses can be cached, so the change might not take effect immediately.
Is it worth paying for?
Private AdGuard DNS also has a free plan. Here’s how it compares with the paid plans:
| Plan limits | Starter | Personal | Team |
|---|---|---|---|
| Monthly DNS requests | 300,000 | 10 million | 100 million |
| Devices | 5 | 20 | 200 |
| DNS servers | 2 | 5 | 50 |
| Custom rules | 100 | 1,000 | 5,000 |
Personal and Team are available as monthly or annual subscriptions. The table shows the entry Team plan, but higher capacity Team plans and an Enterprise offering are also available.
NOTE: If you already have a paid AdGuard VPN subscription, you get the DNS Personal plan at no additional cost. Sign in to your existing account before buying anything.
Do you actually need to pay for DNS? If all you want to do is block common ads and trackers, no. Try the public servers first. If you want more control over what gets blocked, use Starter and see how many requests your devices generate. 300,000 DNS requests might sound like a lot, but they’re not pageviews. Your devices make requests in the background even when you’re not browsing the web.
For current pricing check out the AdGuard DNS website (affiliate link). Check the renewal price before subscribing. According to the terms of sale, discounted subscriptions renew at full price unless you disable automatic renewal. Annual subscriptions bought directly from AdGuard have a 30 day refund period, while monthly subscriptions are nonrefundable under the published policy.
What about privacy?
Encrypting DNS requests is a good thing. But you’re still sending those requests to somebody else’s server. In this case AdGuard’s.
According to its privacy policy, the public DNS service doesn’t keep personally identifiable query histories, but it does collect aggregated usage statistics and maintains an anonymous database of recently requested domains.
With Private AdGuard DNS, AdGuard can store information for the dashboard and query log such as the domains requested, device names and timestamps. If you don’t need these logs, disable them. You can also configure how long data is retained. Check these settings if you’re managing DNS for other people.
Changing your DNS provider won’t make you anonymous any more than using a VPN will. Encrypted DNS doesn’t hide your IP address or encrypt all your internet traffic.
Can AdGuard DNS replace your ad blocker?
Not entirely. DNS filtering blocks domains. If an ad is served from the same domain as the content you’re trying to access, DNS can’t tell the difference between the two. So don’t expect it to reliably block YouTube video ads or sponsored posts in social media apps. It won’t remove the blank spaces left by blocked ads either, or block every form of tracking.
Apps that connect directly to an IP address or use their own DNS resolver can bypass your settings. And if you’re using a VPN, custom browser DNS or iCloud Private Relay, check whether it’s overriding your chosen resolver. Don’t just disable a privacy or security feature to get DNS filtering to work.
There’s no reason to get rid of your browser’s content blocker or AdGuard Ad Blocker just because you’re using AdGuard DNS. Use them together. And if you’d rather not rely on a hosted filtering service, take a look at AdGuard Home or Pi-hole. You’ll have to set up and maintain your own DNS filtering server, though.
Disclosure: FSMdotCOM may earn a commission from purchases made through affiliate links, at no additional cost to you.

