Skip to content

DmitriyLyalyuev/powerdns-no-ads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local PowerDNS with ads filter

Original repo

It is mirror of original repo

Dependensies:

Spin up:

Clone repo

sudo mkdir /opt/docker
sudo chown <user> /opt/docker
git clone https://github.com/DmitriyLyalyuev/powerdns-no-ads /opt/docker/pdns
cd /opt/docker/pdns

Create DB

docker-compose up -d mysql

MySQL credentials

To get MySQL console run:

docker exec -ti pdns_mysql_1 mysql -u root -p

Default root password for MySQL is '12345'.

Create user and database:

CREATE USER 'powerdns_user'@'%' IDENTIFIED BY 'powerdns';
GRANT ALL PRIVILEGES ON powerdns.* TO 'powerdns_user'@'%';
CREATE DATABASE powerdns;
exit

Run your own DNS server with ads filter

docker-compose up -d

This will run docker container with mount "/opt/docker/pdns/powerdns-server" folder to it as volume /etc/powerdns.

Update ads lists:

To update database run

docker exec -ti pdns_pdns_1 bash
cd /etc/powerdns/bind
./getnewlist.sh && ./import.sh && ./clean.sh
exit

It will download new ads servers lists and generate new sql dump file, then import it to the MySQL docker comtainer.

White listing:

White list of domains you can specify on top of "getnewlist.sh".

About

PowerDNS with ads filtering in docker for home usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages