Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrew-kandyba/dns-pihole-unbound

Pi-hole, a network-wide ad blocker, is combined with Unbound, a DNS over TLS resolver, within a docker containers
https://github.com/andrew-kandyba/dns-pihole-unbound

docker-pi-hole docker-pihole-unbound docker-unbound pi-hole pi-hole-unbound pihole unbound-dns unbound-dns-server unbound-server

Last synced: 2 days ago
JSON representation

Pi-hole, a network-wide ad blocker, is combined with Unbound, a DNS over TLS resolver, within a docker containers

Awesome Lists containing this project

README

        

# PI-HOLE + UNBOUND + DOCKER
`pihole/pihole:2024.03.2`    `mvance/unbound:1.19.3`

[Pi-hole](https://github.com/pi-hole/docker-pi-hole), a network-wide ad blocker, is combined with [Unbound](https://nlnetlabs.nl/projects/unbound/about/), a DNS over TLS resolver.

## Config
The `.env` file in the root of the project is used for configuration.

| Name | Default | Comment |
|:------|:------|:------------------------------------------------------|
| HOST_IP | --- | Your LAN IP. |
| TZ | `America/Chicago` | Your timezone |
| TAG | `local` | Use as docker container's tag |
| PROJECT | `my-dns` | Use as docker image's repository alias |
| PI_HOLE_PORT | `53` | Pi-Hole web password |
| PI_HOLE_WEB_PORT | `80` | Pi-Hole web port (host) |
| PI_HOLE_PASSWORD | `password` | [pi.hole/admin](http://pi.hole/admin ) web password |
| UNBOUND_PORT | `5335` | Unbound port (host) |

## Test
For test is working correctly you can check [the custom A-record](./conf/records/a-records.conf):

```bash
# This should return the IP 192.168.168.192

> nslookup jqfqmenwsqeporkaaecrvqdf.my

Server: 192.168.1.12
Address: 192.168.1.12#53

Non-authoritative answer:
Name: jqfqmenwsqeporkaaecrvqdf.my
Address: 192.168.168.192
```

## Make
```bash
> make help

build Building pihole and unbound images.
start Start containers.
stop Stop and remove containers.
shell Get root shell inside pihole container.
```