Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arianrashidi/pihole-unbound
Pi-Hole and Unbound with Docker
https://github.com/arianrashidi/pihole-unbound
adblock adblocker adblocking dns dns-server docker docker-compose pi-hole pihole self-hosted self-hosting unbound
Last synced: about 2 months ago
JSON representation
Pi-Hole and Unbound with Docker
- Host: GitHub
- URL: https://github.com/arianrashidi/pihole-unbound
- Owner: arianrashidi
- License: mit
- Created: 2022-12-29T15:21:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-10T00:30:09.000Z (about 2 years ago)
- Last Synced: 2024-11-02T07:06:00.760Z (3 months ago)
- Topics: adblock, adblocker, adblocking, dns, dns-server, docker, docker-compose, pi-hole, pihole, self-hosted, self-hosting, unbound
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Pi-Hole and Unbound with Docker
IMPORTANT: Either use this locally or with a VPN. This project is not meant to be used on a public server.## Setup
1. Start with a new Ubuntu 22 server.
2. Close all ports except 22 TCP for SSH, 53 TCP/UDP for DNS and 80 TCP for the web interface.
3. Install Docker.
4. Run `sudo sed -r -i.orig 's/#?DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf`, `sudo sh -c 'rm /etc/resolv.conf && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf'` and `sudo systemctl restart systemd-resolved`.
5. Clone this repository to `/srv/pihole-unbound`.
6. Run `sudo docker-compose up -d` in the cloned directory.
7. Get your web interface password with `sudo docker logs pihole | grep random`.
8. Check if everything is working by browsing to `http:///admin` and entering the password from the last step.## Update
`cd /srv/pihole-unbound && sudo docker-compose down -t 120 && sudo docker-compose pull && sudo docker-compose up -d --remove-orphans && sudo docker image prune`