Free third-party DNS for blocking ads and trackers

By Rahul Pandit

Posted on Sunday, 09 March 2025

Last updated on Tuesday, 15 April 2025

Introduction

Here are some third party DNS services you can use that block online ads and trackers. First, a caveat: these DNS servers will receive all the DNS queries that originate from your device so make sure you trust a service before you use it. A much better option that improves privacy even more is to self-host Pi-hole and DNSCrypt-proxy along with Wireguard to query your DNS queries and Nginx for DoT and dnsdist for DoH. But I understand that setting it up requires some expertise. Please note that some (but not all) of the following providers also block malware/phishing domains as well.

dnsforge.de

  • DNS:
    • IPv4: 49.12.222.213
    • IPv4: 88.198.122.154
    • IPv6: 2a01:4f8:c17:2c61::213
    • IPv6: 2a01:4f8:c013:5ec0::154
  • DoH:
    • https://hard.dnsforge.de/dns-query
  • DoT:
    • hard.dnsforge.de

LibreDNS

  • DoH:
    • https://doh.libredns.gr/noads
  • DoT:
    • noads.libredns.gr

AdGuard DNS

  • DNS:
    • IPv4: 94.140.14.140
    • IPv4: 94.140.14.141
    • IPv6: 2a10:50c0::1:ff
    • IPv6: 2a10:50c0::2:ff
  • DoH:
    • https://dns.adguard-dns.com/dns-query
  • DoT:
    • dns.adguard-dns.com

Control D

I scrolled to 'Custom Configuration' section and selected 'Ads & Trackers', 'Malware' and 'Phishing' filters.

  • DoH:
    • https://freedns.controld.com/no-ads-malware-typo
  • DoT:
    • no-ads-malware-typo.freedns.controld.com

Mullvad DNS

  • DoH:
    • https://base.dns.mullvad.net/dns-query
  • DoT:
    • base.dns.mullvad.net

BlahDNS

  • DoH:
    • https://doh-sg.blahdns.com/dns-query
    • https://doh-de.blahdns.com/dns-query
  • DoT:
    • dot-sg.blahdns.com
    • dot-de.blahdns.com

DNS Warden

  • DoH:
    • https://dns.dnswarden.com/adblock
  • DoT:
    • adblock.dns.dnswarden.com

Tiarap

  • DNS:
    • IPv4: 174.138.21.128
    • IPv4: 188.166.206.224
    • IPv6: 2400:6180:0:d0::5f6e:4001
  • DoH:
    • https://doh.tiarap.org/dns-query
    • https://doh.tiar.app/dns-query
  • DoT:
    • dot.tiar.app
    • doh.tiar.app

Bancuh DNS

  • DNS:
    • IPv4: 139.59.219.245
    • IPv4: 139.59.218.207
    • IPv6: 2400:6180:0:d0::f7:1001
    • IPv6: 2400:6180:0:d0::f5:7001
  • DoT:
    • sg-dns1.bancuh.com
    • sg-dns2.bancuh.com

0ms DNS

  • DoH:
    • https://0ms.dev/dns-adblock

dns0.eu kids

This blocks ads and also all websites inappropriate for kids. Read more about it on their website.

  • DNS:
    • IPv4: 193.110.81.1
    • IPv4: 185.253.5.1
    • IPv6: 2a0f:fc80::1
    • IPv6: 2a0f:fc81::1
  • DoH:
    • https://kids.dns0.eu
  • DoT:
    • kids.dns0.eu

dismail.de

  • DNS:
    • IPv4: 116.203.32.217
    • IPv6: 2a01:4f8:1c1b:44aa::32:217
    • IPv6: 2a01:4f8:1c1b:44aa::1
  • DoT:
    • fdns1.dismail.de
    • fdns2.dismail.de

brahma world

  • DoH:
    • https://dns.brahma.world/dns-query
  • DoT:
    • dns.brahma.world

Schonet DNS

  • DNS:
    • IPv4: 89.163.255.195
    • IPv6: 2001:4ba0:babe:3734::
  • DoH:
    • https://schonet-dns.de/dns-query
  • DoT:
    • schonet-dns.de

AhaDNS Blitz

I selected 'oisd big', '1Hosts (Lite)', 'Lightswitch05', 'StevenBlack', 'GoodbyeAds (jerryn70)', 'Crypto (TBLP)', 'Phishing (TBLP)', 'Ransomware (TBLP)', 'Scam (TBLP)' and 'Tracking (TBLP)' lists.

  • DoH:
    • https://blitz.ahadns.com/1:1.4.7.8.17.18.20.22.23.26

Alternate DNS

  • DNS:
    • IPv4: 76.76.19.19
    • IPv4: 76.223.122.150
    • IPv6: 2602:fcbc::ad
    • IPv6: 2602:fcbc:2::ad

ReThinkDNS

I clicked on 'Simple' then selected 'Full' and 'Extra' in Security section and selected 'Lite', 'Aggressive' and 'Extreme' in 'Privacy' section.

  • DoH:
    • https://sky.rethinkdns.com/1:-B9_A__9____3___2N3-8zEACmoAWA==
  • DoT:
    • 1-7apx6a777x7777677775rxp66myqactkabma.max.rethinkdns.com

DeCloudUs

  • DoH:
    • https://dns.decloudus.com/dns-query
  • DoT:
    • dns.decloudus.com

Block only malware/phishing domains

If you only want to block malware/phishing domains and not ads/tracking domains.

Quad9

  • DNS:
    • IPv4: 9.9.9.9
    • IPv4: 149.112.112.112
    • IPv6: 2620:fe::fe
    • IPv6: 2620:fe::9
  • DoH:
    • https://dns.quad9.net/dns-query
  • DoT:
    • dns.quad9.net

Cloudflare for Families

  • DNS:
    • IPv4: 1.1.1.2
    • IPv4: 1.0.0.2
    • IPv6: 2606:4700:4700::1112
    • IPv6: 2606:4700:4700::1002
  • DoH:
    • https://security.cloudflare-dns.com/dns-query
  • DoT:
    • security.cloudflare-dns.com

Cleanbrowsing Security Filter

  • DNS:
    • IPv4: 185.228.168.9
    • IPv4: 185.228.169.9
    • IPv6: 2a0d:2a00:1::2
    • IPv6: 2a0d:2a00:2::2
  • DoH:
    • https://doh.cleanbrowsing.org/doh/security-filter/
  • DoT:
    • security-filter-dns.cleanbrowsing.org


Cover Picture Credit : Photo by Compare Fibre on Unsplash


Tags : Privacy Security




Recent Posts

Deploy Vaultwarden password manager, Portainer, Nginx and Certbot in Docker


Good Pi-hole blocklists that stop online ads, trackers and malware


Block online ads, trackers and malware with Pi-hole, WireGuard, DoT and DoH servers


Free third-party DNS for blocking ads and trackers


My Chess Notes