Skip to content

iamskok/docker-unbound-pihole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2x Unbound DNS + Pi-hole (Docker compose)

Setup

  1. Update .env file:
  • Set secure WEBPASSWORD.
  • Set gateway IP address REV_SERVER_TARGET.
  • Set local network in CIDR notation REV_SERVER_CIDR.
  • Set PiHole local IP address ServerIP.
  1. Update hosts file to match your local devices (alternatively remove all records).
  2. Update etc-dnsmasq.d/custom-dns-records.conf to configure local domains resolutions (alternatively remove all records).

Install

docker-compose up -d

DNS Benchmark

To check performace of this setup vs popular DNS server:

  • Login into PiHole.
  • Navigate to Settings > DNS.
  • Select predefined upstream DNS servers you want to benchmark against.
  • Install namebench or similar script and execute it. Alternatively use PiHole for 24 hours.
  • Find PiHole container id docker ps -a.
  • Access PiHole container docker exec -it <container-id> sh.
  • Execute echo ">forward-dest >quit" | nc 127.0.0.1 4711 to get percentage of forwards to each server (PiHole has an algorithm which will favor the best performers. The best performers will get the most forwards.)

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages