https://github.com/codeniko/pihole-coredns-tls-docker
docker-compose and other config files to quickly set up pihole and coredns to use DNS over TLS
https://github.com/codeniko/pihole-coredns-tls-docker
Last synced: 11 months ago
JSON representation
docker-compose and other config files to quickly set up pihole and coredns to use DNS over TLS
- Host: GitHub
- URL: https://github.com/codeniko/pihole-coredns-tls-docker
- Owner: codeniko
- License: mit
- Created: 2020-06-14T19:21:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T06:54:02.000Z (over 5 years ago)
- Last Synced: 2025-04-13T00:11:30.247Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pihole-coredns-tls-docker
Easily set up pihole and coredns to use DNS over TLS with Docker. Currently used on and tested on a single Raspberry Pi 4 but I'm sure it will work on any unix based system.
1) Install docker and docker-compose
2) Clone this repo
3) Change to `coredns` directory and run the `genCerts.sh` script.
4) Go back to root directory and edit `docker-compose.yml` and set a web password. Also change the topmost DNS server for pihole to your gateway's IP. Mine happens to be `10.30.0.1`
5) Run `docker-compose up -d`
6) Go to IP of server to enter pihole dashboard, deselect prior DNS settings and set DNS custom1 to `172.10.10.100#53` for coredns
### Verify outgoing DNS over TLS to Cloudflare
Use any of the following:
1) https://www.cloudflare.com/ssl/encrypted-sni/
2) https://1.1.1.1/help
### Verify incoming DNS over TLS requests on port 853
`kdig @IP +tls example.com` where IP is ip address of device running the containers
### Useful debugging commands
Open up shell on pihole container
`docker exec -ti pihole bash`
View all details about some container
`docker inspect pihole`