How much does this cost?
What are the IP addresses of your DNS servers?
How do I set it up?
Who should use this service?
What type of content is blocked?
- Known ad servers
- Known malware sites
- Known adult content sites
How does DNS adblocking work?
An adblock DNS server however, does something extra. If the domain name is known for hosting ads, we perform a 'white lie', and redirect to a null server. Not having the correct IP address for adservers means that ads will fail to load.
If you use any available adblock DNS server on your home router, or your laptop, ads won't load.
Why not use a browser extension instead?
The most common way to block ads, is to install a browser extension that block ads on the browser. If you use Firefox or Chrome on a laptop/PC, then there are several extensions to choose from. It is also quite effective.
However not all browsers and devices will have available extensions. Some mobile apps nowadays also have ads placeholder in-app, and extensions will not apply here.
Extensions also only apply to a single browser where it's installed. You probably don't want to install adblock extensions on every single device on your home network. In comparison, adblock dns will apply to your entire network.
Why not edit the hosts file instead?
Host files work offline, your device will immediately know which ad domains to block, without relying on external providers. You can then stick to Google's DNS or OpenDNS servers for regular content, which should be more reliable and faster than my own servers.
There are also tools that can help you configure this. AdAway works on rooted Android devices. Some projects (https://github.com/StevenBlack/hosts) provide hosts files that you can use straight away.
But again, it does not work for all devices. I am not sure if it is possible on IOS, and doing this on Android requires the device to be rooted. And you have to configure each single device on your network.
It is also possible that you are also using your hosts file for other purposes, and you don't want to pollute it with thousands of lines of ad domains. Also, a misconfigured host file will disrupt your Internet.
Use adblock DNS when you don't want to deal with hosts file. It's easier.
Is it possible to host adblock DNS servers myself?
I recommend you get started with my project on github at https://github.com/ragibkl/adblock-dns-server. Using a few commands, you can get up and running within minutes.
It does not seem to work. How do I fix this?
For now, head over to the project issues page on GitHub at https://github.com/ragibkl/adblock-dns-server/issues