Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Selfhosted
  3. Pihole + Unbound Docker Compose file

Pihole + Unbound Docker Compose file

Scheduled Pinned Locked Moved Selfhosted
selfhosted
30 Posts 11 Posters 20 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T [email protected]

    https://github.com/IAmStoxe/wirehole

    vanilla_puddinfudge@infosec.pubV This user is from outside of this forum
    vanilla_puddinfudge@infosec.pubV This user is from outside of this forum
    [email protected]
    wrote last edited by
    #20

    3 years ago

    2 years ago

    uh, nah

    T 1 Reply Last reply
    1
    • vanilla_puddinfudge@infosec.pubV [email protected]

      3 years ago

      2 years ago

      uh, nah

      T This user is from outside of this forum
      T This user is from outside of this forum
      [email protected]
      wrote last edited by
      #21

      That's when the compose file was written. The docker images named in the file are updated constantly. Fear not ad-block seeker!

      vanilla_puddinfudge@infosec.pubV 1 Reply Last reply
      2
      • T [email protected]

        That's when the compose file was written. The docker images named in the file are updated constantly. Fear not ad-block seeker!

        vanilla_puddinfudge@infosec.pubV This user is from outside of this forum
        vanilla_puddinfudge@infosec.pubV This user is from outside of this forum
        [email protected]
        wrote last edited by
        #22

        Dope. Gonna give it a spin on a vps tonight.

        1 Reply Last reply
        1
        • Z [email protected]

          I just went through my setup to verify dnssec settings in unbound to troubleshoot strange latency when removing random names while browsing. Did you verify the unbound certificate file was created and had the proper permissions? There are also a couple other configuration items in unbound related to dnssec that can be tweaked to improve the implementation.

          O This user is from outside of this forum
          O This user is from outside of this forum
          [email protected]
          wrote last edited by
          #23

          I tried again today with baremetal and docker install but I always end up with SERVFAIL after some time.

          Z 1 Reply Last reply
          0
          • O [email protected]

            I tried again today with baremetal and docker install but I always end up with SERVFAIL after some time.

            Z This user is from outside of this forum
            Z This user is from outside of this forum
            [email protected]
            wrote last edited by
            #24

            Instead of port 53, I need to run unbound on 5335 (or another obscure port).I believe I also had to make some host level changed for DNS to operate correctly for incoming requests.

            Here's my podman run commands. These might have changed a bit with Pihole v6, but should still be ok AFAIK.

            #PiHole1 Deployment/Upgrade Script
            podman run -d --name pihole -p 53:53/tcp -p 53:53/udp -p 8080:80/tcp --hostname pihole --cap-add=CAP_AUDIT_WRITE -e FTLCONF_REPLY_ADDR4=192.168.0.201 -e PIHOLE_DNS_="192.168.0.201#5335;192.168.0.202#5335" -e TZ="America/New York" -e WEBPASSWORD=" MyPassword" -v /var/pihole/pihole1:/etc/pihole -v /var/pihole/pihole1/piholedns/:/etc/dnsmasq.d --restart=unless-stopped --label="io.containers.autoupdate=registry" docker.io/pihole/pihole:latest

            #UnBound1 Deployment/Upgrade Script
            podman run -d --name unbound -v /var/pihole/pihole1/unbound:/opt/unbound/etc/unbound/ -v /var/pihole/pihole1/unbound/unbound.log:/var/log/unbound/unbound.log -v /var/pihole/pihole1/unbound/root.hints:/opt/unbound/etc/unbound/root.hints -v /var/pihole/pihole1/unbound/a-records.conf:/opt/unbound/etc/unbound/a-records.conf -p 5335:5335/tcp -p 5335:5335/udp --restart=unless-stopped --label="io.containers.autoupdate=registry" docker.io/mvance/unbound:latest

            O 1 Reply Last reply
            2
            • irmadlad@lemmy.worldI [email protected]

              How well does that run in docker? I've always liked docker, but it seems to me that certain apps should touch metal than be containerized. Maybe I'm too old school.

              appoxo@lemmy.dbzer0.comA This user is from outside of this forum
              appoxo@lemmy.dbzer0.comA This user is from outside of this forum
              [email protected]
              wrote last edited by [email protected]
              #25

              Focker Docker container in host mode is sufficient for most cases requiring bare deployment.

              irmadlad@lemmy.worldI 1 Reply Last reply
              1
              • appoxo@lemmy.dbzer0.comA [email protected]

                Focker Docker container in host mode is sufficient for most cases requiring bare deployment.

                irmadlad@lemmy.worldI This user is from outside of this forum
                irmadlad@lemmy.worldI This user is from outside of this forum
                [email protected]
                wrote last edited by
                #26

                I've heard of Docker, Incus, k8s, VM, but not Focker. Is this some new containerization software?

                1 Reply Last reply
                0
                • O [email protected]

                  Hi friends.

                  I've been trying to find docker-compose.yaml for pihole+unbound so I can use pihole as both a recursive dns server and as local dns alongside Nginx Proxy Manager. But since v6 of pihole all the old files I could find don't work properly or at all.

                  Does anyone here use pihole+unbound in docker?

                  N This user is from outside of this forum
                  N This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #27

                  https://community-scripts.github.io/ProxmoxVE/scripts?id=pihole

                  1 Reply Last reply
                  0
                  • Z [email protected]

                    Instead of port 53, I need to run unbound on 5335 (or another obscure port).I believe I also had to make some host level changed for DNS to operate correctly for incoming requests.

                    Here's my podman run commands. These might have changed a bit with Pihole v6, but should still be ok AFAIK.

                    #PiHole1 Deployment/Upgrade Script
                    podman run -d --name pihole -p 53:53/tcp -p 53:53/udp -p 8080:80/tcp --hostname pihole --cap-add=CAP_AUDIT_WRITE -e FTLCONF_REPLY_ADDR4=192.168.0.201 -e PIHOLE_DNS_="192.168.0.201#5335;192.168.0.202#5335" -e TZ="America/New York" -e WEBPASSWORD=" MyPassword" -v /var/pihole/pihole1:/etc/pihole -v /var/pihole/pihole1/piholedns/:/etc/dnsmasq.d --restart=unless-stopped --label="io.containers.autoupdate=registry" docker.io/pihole/pihole:latest

                    #UnBound1 Deployment/Upgrade Script
                    podman run -d --name unbound -v /var/pihole/pihole1/unbound:/opt/unbound/etc/unbound/ -v /var/pihole/pihole1/unbound/unbound.log:/var/log/unbound/unbound.log -v /var/pihole/pihole1/unbound/root.hints:/opt/unbound/etc/unbound/root.hints -v /var/pihole/pihole1/unbound/a-records.conf:/opt/unbound/etc/unbound/a-records.conf -p 5335:5335/tcp -p 5335:5335/udp --restart=unless-stopped --label="io.containers.autoupdate=registry" docker.io/mvance/unbound:latest

                    O This user is from outside of this forum
                    O This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #28

                    I used a similar docker compose config. Yesterday I learned that unbound doesn’t have root.hints by default. I downloaded it following Anudeep’s guide on Github and it was working. But within 2 hours, it started taking too long to respond and eventually stopped replying to pihole. I had to switch to cloudflare.

                    Z 1 Reply Last reply
                    0
                    • O [email protected]

                      I used a similar docker compose config. Yesterday I learned that unbound doesn’t have root.hints by default. I downloaded it following Anudeep’s guide on Github and it was working. But within 2 hours, it started taking too long to respond and eventually stopped replying to pihole. I had to switch to cloudflare.

                      Z This user is from outside of this forum
                      Z This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #29

                      Have you modified the default unbound config at all? This sounds like increasing the cache size limits and timeframes in the unbound config could help.

                      I'm actually chasing an issue I've always had where everything works great in my environment, but on mobile certain domains take ages to finally load up for me. I think it's a combination of my Pihole blocking and the amount of domains tied to a page (advertisements and tracking), but would love to figure it out. I work around it right now by flipping wifi off and on again in those instances.

                      O 1 Reply Last reply
                      0
                      • Z [email protected]

                        Have you modified the default unbound config at all? This sounds like increasing the cache size limits and timeframes in the unbound config could help.

                        I'm actually chasing an issue I've always had where everything works great in my environment, but on mobile certain domains take ages to finally load up for me. I think it's a combination of my Pihole blocking and the amount of domains tied to a page (advertisements and tracking), but would love to figure it out. I work around it right now by flipping wifi off and on again in those instances.

                        O This user is from outside of this forum
                        O This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #30

                        I have used pi-hole recommended config. I have used unbound recommended config (which feels incomplete and confusing). I have tried tweaks here and there. End result is this.

                        So far, the longest I have had success is with unbound docker container. The issue with that is that it seems to not be caching entries.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups