Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

A Ubuntu Docker container running Bind9 with an IP black list of advertising sites. Point your workstations to this DNS host when browsing the web and ads disappear.

Notifications You must be signed in to change notification settings

sawasy/docker-ad-blocking-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-ad-blocking-dns

docker-ad-blocking-dns is an Ubuntu container with bind9 and IP blacklisting

cd docker-ad-blocking-dns
sudo docker build -t sawasy/docker-ad-blocking-dns .
sudo docker run -d -p 53:53 -p 53:53/udp sawasy/docker-ad-blocking-dns

###Notes You can tweak a few things. If you swap the 127.0.0.1 reference, in null.zone.file, for a real webserver you can track the 404s there.

Also, you might want to disable

'allow-query-cache { any; };'

in named.conf.options if you are on a public network. Or not. Up to you.

This could be setup as a container on your workstation. Editing /etc/resolv.conf

nameserver localhost

will likely do the trick.

If you are doing this on an Ubuntu workstation, you likely will need to disable dnsmasq.

sudo sed -i -e 's/dns=dnsmasq/#dns=dnsmasq/g' /etc/NetworkManager/NetworkManager.conf
sudo service network-manager restart
sudo pkill dnsmasq

###Reference Most of the heavy lifting for this was sorted out here: http://www.lituxx.com/website/en/2014/03/block-ads-on-your-entire-network/

Also, this uses the excellent Advertiser black list at http://pgl.yoyo.org/as/

About

A Ubuntu Docker container running Bind9 with an IP black list of advertising sites. Point your workstations to this DNS host when browsing the web and ads disappear.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published