Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Message added by spants,

This template is depreciated as it is >4 years old. There are newer versions available

[SUPPORT] pihole for unRaid - Spants repo

Featured Replies

Hello all, maybe I'm missing it, but anyway to add local host entries?  There are plenty of ways to add local DNS lookup (need to resolve *nix boxes and other that don't do netbios) when running on a full VM/host, but not finding a way to do this in an unraid docker.

  • Replies 1.1k
  • Views 331.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I just wanted to share a trick I used to have hostnames show up in the Pihole Dashboard for my local devices instead of IP addresses. Like this:     First make a copy of the /etc/

  • Hi, I wanted to use this pihole docker as my second dns server, i already have a hardware raspberry pi as my main pihole dns, but having a backup is always good. I was wondering how i could

  • There is a section on the readme that will help.   0) If you dont have python3 on your unRaid, install it via the nerdtools plugin.   1) find the path for /etc/pihole/  - for me it

Posted Images

EDIT; 

It suddenly started working after 2 days it seems, who knows why. 

 

Hey, 

 

updated the docker tonight, it seems the DNS server is working fine, but the web ui is not reachable anymore. Running unraid 6.4.

Earlier it was setup as bridge but to port 8081, this worked fine. 

After the upgrade I have tried setting it as the same, no go. 

I tried setting it up with br0 and its own ip, no go

I've added the extra parameters, i tried renaming the interface to eth0 and a few other tips i found from the recent posts in this thread, nothing seems to help. 

 

I've now set it up as with 'host', and changed unraid management port to 81

I cannot for the life of me get the pi-hole webui to work

 

launch command when starting pihole; 

-

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="pihole" --net="host" --privileged="true" -e TZ="Europe/Berlin" -e HOST_OS="unRAID" -e "TCP_PORT_53"="53" -e "UDP_PORT_53"="53" -e "TCP_PORT_80"="80" -e "ServerIP"="192.168.0.252" -e "DNS1"="8.8.8.8" -e "DNS2"="8.8.4.4" -e "IPv6"="False" -e "TZ"="Europe/London" -e "WEBPASSWORD"="admin" -e "INTERFACE"="eth0" -e "DNSMASQ_LISTENING"="all" -v "/mnt/user/appdata/pihole/pihole/":"/etc/pihole/":rw -v "/mnt/user/appdata/pihole/dnsmasq.d/":"/etc/dnsmasq.d/":rw --cap-add=NET_ADMIN --dns 127.0.0.1 --dns 8.8.8.8 diginc/pi-hole:latest

WARNING: Localhost DNS setting (--dns=127.0.0.1) may fail in containers.
--a bunch of numbers etc, looks like a fingerprint, leaving this private for now:)--

The command finished successfully!

-

 

is there something stupid I'm missing ? Halp!

Edited by Abnorm

How do I prevent a container update from resetting my custom upstream DNS setting (internal router IP running Unbound)? I entered the IP in the template and I tried it three ways, with the second DNS server blank, repeating first IP, and deleting the variable. None worked ,the container started with an upstream DSN error and disabled the resolver and UI.

  • Author
On 25/03/2018 at 10:35 PM, deagle said:

How do I prevent a container update from resetting my custom upstream DNS setting (internal router IP running Unbound)? I entered the IP in the template and I tried it three ways, with the second DNS server blank, repeating first IP, and deleting the variable. None worked ,the container started with an upstream DSN error and disabled the resolver and UI.

If you set dns1 and dns2 to Unbound, it gets changed?

  • Author

**** Spaceinvader One has created a setup video.. See it here ***

 

 

When I use pihole my cpu usage goes way up.  is this normal?

On 3/3/2018 at 1:32 PM, WexfordStyle said:

If one uses the LetsEncrypt docker as a reverse proxy and also uses this docker. Can the PiHole dashboard be accessed through the reverse proxy? I cannot get it to work. 

 

I get 502 bad gateway.

 

 Same here. I know my nginx config is good because I had pihole running and working on an actual raspberry pi for quite a while until the pi died last week.

 

Maybe related, but I also have a bizarre issue where I can't access the admin GUI while connected to my network via VPN. I can only access it from a machine directly on the LAN.

On 3/18/2018 at 4:50 AM, RokleM said:

Hello all, maybe I'm missing it, but anyway to add local host entries?  There are plenty of ways to add local DNS lookup (need to resolve *nix boxes and other that don't do netbios) when running on a full VM/host, but not finding a way to do this in an unraid docker.

Wondering the same, if I find a solution for this I can really replace my Pi.

When I use pihole my cpu usage goes way up.  is this normal?
No, are you sure the CPU usage is being caused my pihole?

Sent from my ONEPLUS A3000 using Tapatalk

27 minutes ago, Kewjoe said:

No, are you sure the CPU usage is being caused my pihole?

Sent from my ONEPLUS A3000 using Tapatalk
 

Well I looked into it a little more.  It may not have been as bad as I thought  It looks like my CPU went up 4%-5% when I was running pihole which seems like quite a bit for what it is doing though.

For everyone getting the 502 bad gateway with nginx... I believe its caused by port 80 fix of using the custom etho... when u do that it isolates pihole from your other dockers.... the fix is to change unraid to another port, let pihole run on port of your host network using port 80

 

Once u do that you'll fix the bad gateway error, but all I can get to load is the dashboard but the stats r blank... u click login u get a page can't be found... can anyone assist with that?

23 hours ago, Kube said:

For everyone getting the 502 bad gateway with nginx... I believe its caused by port 80 fix of using the custom etho... when u do that it isolates pihole from your other dockers.... the fix is to change unraid to another port, let pihole run on port of your host network using port 80

 

Once u do that you'll fix the bad gateway error, but all I can get to load is the dashboard but the stats r blank... u click login u get a page can't be found... can anyone assist with that?

how do you that from command line since i cant get into the webui?

 

better yet how do kill the docker so i can access the webui?

On 3/29/2018 at 5:49 AM, spants said:

If you set dns1 and dns2 to Unbound, it gets changed?

If you set both to the same IP in the docker template, the container start process stops with "upstream DSN error"

Edited by deagle

Hi,

 

I am still not sure if SafeSearch is possible on PiHole Docker?

 

On my PiHole RPi3 installation I was able to get it working.

 

Br,

JOhannes

 

Installed the docker on two networks -- worked great on one / shut off all DNS on the other. Going to try again on the second network but in the meantime, I have a few questions.

 

1) When I go to http://192.168.2.25/Docker it takes a long time and then I get not available in red for the version of all the dockers I have installed. The dockers also don't have icons -- instead just circles with white question marks. Am I supposed to whitelist something for Dockers to work properly? When I check the dashboard nothing is being blocked.

 

2) When I started reading this topic in the first few pages there was mention of running a script every night to clear out the logs -- is that still necessary or can log length now be set inside the docker?

On the second network, I have managed to get PiHole working but Dashboard and Query Log show no data -- all the settings are identical to the one that is working properly except under status in the top left Load is red on the one having issues. The unRaid server should not be under any high load.

Edited by Naldinho

Anyone seen br0 go missing inside the container? I bashed into the container and it is indeed gone, I saw eth0 was there so I flipped it from br0 to eth0 and PiHole kicked back in without any issues so far.

Is there a way to update pihole to core 3.3.1?  I am seeing update at bottom of screen but not sure if/how can update this.

  • Author
1 hour ago, rmilyard said:

Is there a way to update pihole to core 3.3.1?  I am seeing update at bottom of screen but not sure if/how can update this.

 

Nope - you have to wait until diginc tests and updates the docker

Quick question I set pihole up works great so do I delete adblocker, turn it off or remove it all together / does it hurt to run both?

  • Author
Just now, mrbilky said:

Quick question I set pihole up works great so do I delete adblocker, turn it off or remove it all together / does it hurt to run both?

 

I just turn mine off just in case I want to use a normal dns ....

Has anyone figured out how to use the Pi-hole DNS while connected through OpenVPN?

 

I have Pi-holes DNS set up on my router and it works locally and through SSH Proxy but not on VPN. 

Just updated the docker and seeing no data at all and the log is full of;

Found pihole-FTL process with PID 435 (my PID 699) - killing it ...
Found pihole-FTL process with PID 435 (my PID 699) - killing it ...
Found pihole-FTL process with PID 435 (my PID 699) - killing it ...
Found pihole-FTL process with PID 435 (my PID 699) - killing it ...
Found pihole-FTL process with PID 435 (my PID 699) - killing it ...

Any ideas?

pihole.png

Just to add, I've had to kill the docker as it was using huge amounts of CPU and also crashing the unraid GUI.

 

Anyone else having the same issue, or is it isolated to me?

 

Hoping for a fix, or is there a way to roll back?

Edited by WannabeMKII

50 minutes ago, WannabeMKII said:

Found pihole-FTL process with PID 435 (my PID 699) - killing it ...

 

Different PIDs, but seeing the same thing. WebUI doesn't load at all 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.