sujiba / pihole-unbound-hyperlocal

docker pull sujiba/pihole-unbound-hyperlocal
https://hub.docker.com/r/sujiba/pihole-unbound-hyperlocal
18 stars 7 forks source link
adblock dns dns-server docker docker-compose hyperlocal pi-hole unbound

Pihole + Unbound + Hyperlocal

IMPORTANT: When using this Docker image, please report any bugs or suggestions to this repository directly.

Overview

Introduction

Pi-hole:

Unbound:

Hyperlocal:

Prerequisites

First startup

Copy example.env to .env and change the parameters

cp example.env .env
vi .env

Start the container

docker-compose up -d

Check the logs

docker-compose logs -f

resolv.conf

If you get the following error

pihole  | Starting unbound
pihole  |   [✗] DNS resolution is currently unavailable

uncomment the following line in the docker-compose.yaml

#- ./resolv.conf:/etc/resolv.conf

and restart the container

docker-compose up -d --force-recreate

Testing

docker exec -it pihole-unbound bash
dig github.com @127.0.0.1 +short
dig sigfail.verteiltesysteme.net @127.0.0.1 | grep status 
dig sigok.verteiltesysteme.net @127.0.0.1 | grep status

DNS problems

If you are running other docker containers on the same host and cannot use name resolution within these containers, you have to modify /etc/resolvconf.conf on your host system and uncomment the following:

# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers=127.0.0.1

Write the changes to your resolv.conf:

sudo resolvconf -u

See also StackExchange

Blocklists

Acknowledgement