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

2 hours ago, gtosnipey said:

In Unraid in the top right corner hit "Terminal" and type in


chmod -R 777 /mnt/user/appdata/pihole

Then pihole webpage automatically refreshes and logs out. Then once you log in things are all set. 

update: downgrade to v4.1 ran chmod and its perfect no more error message at settings and everything seems to be working fine. I owe you a beer :}

  • Replies 1.1k
  • Views 331.8k
  • 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

Hi all,

 

Apologies if this isn't the right forum, but given it's Pihole related and on unRAID, I thought I'd start here.

 

I want to implement this script https://gitlab.com/grublets/youtube-updater-for-pi-hole/-/tree/master in order to see if I can have better results blocking YouTube ads across my devices.

 

I've followed the readme, edited and saved the file. I am stuck in scheduling it - I've looked at the CA User Scripts plugin but am definitely no cron/linux expert - far from it. Do I need to move this script to the flash drive or is there a way to get it to run as intended so it updates in the background?

Thanks!

Now in bash for the Pihole container itself but in well over my head. Suspect the script would need changing to work properly within the container context.

Hey, seeing that DNS over HTTPS is getting more and more relevant these days, is it possible to include Cloudflared in a future (or maybe an alternative) docker image (https://developers.cloudflare.com/1.1.1.1/dns-over-https/cloudflared-proxy/ ) ?
A writeup on installation and setup; https://docs.pi-hole.net/guides/dns-over-https/

I haven't messed to much with dockers before, but if the above is not possible, would the correct way to proceed be to fork this image to my own private dockerhub/git (not looking to steal any of Spants excellent and hard work though) ? Not sure if that's even possible though

 

Have a great day everyone! 

 

Good Morning Everyone,

 

May I ask, would someone mind sharing how to change the pihole hostname? Currently it displays the name of the container. I believe I saw somewhere that stated it could be done with a docker variable however, I am unable to find any screenshots on what needs to be done.

 

Thank you all in advance for your help.

 

-MW

4 hours ago, mfwade said:

Good Morning Everyone,

 

May I ask, would someone mind sharing how to change the pihole hostname? Currently it displays the name of the container. I believe I saw somewhere that stated it could be done with a docker variable however, I am unable to find any screenshots on what needs to be done.

 

Thank you all in advance for your help.

 

-MW

I finally found the answer on how to take care of it in the "extra parameters" section by adding --hostname=(whatever I want to call it).

When will we see a pihole v5.0 update to the container?

I have a dumb question after watching the video and reading the first few posts.  It looks like you can specify an IP address in the configuration.  So lets say my unRAID server runs at 192.168.0.90, can I set the IP address for the Pihole at 192.168.0.89 and not have to change the unRAID port number to 81?  It looks like I can just give it any old IP address outside of the DHCP server's addressable range.  But I wasn't sure how that worked if you had two addresses on the same NIC.

@spants just wanted to call out a small typo in the CA Info notice for this template.

 

"make sure that you fixe the unRaid servers dns to point to a real DNS Server."

 

Should probably be something like:

 

"make sure that you have fixed your unRaid servers dns to point to a real DNS Server other than your PiHole."

 

image.png.9529ab967b191c4c3f4a9ea074dcfb1f.png

 

Edited by cybrnook

I searched around in this forum and I see this has been touched upon but never deliberated. 

I run pihole on a pi and I could easily implement dnsec and unbound using this official tutorial https://docs.pi-hole.net/guides/unbound/

I also run a backup pihole in my unraid. Can anyone please guide me as to how to configure dnsec and unbound in unraid? Thanks. 

Has anyone who uses this container setup replication between two Pihole installs?  There's a couple of scripts out there but none seem to be docker friendly.  I have an RPI running Pihole (used to use this container but server issues meant the internet went down when the server went down.  Family not happy if I'm not here).  I would like to spin up this container to give me some resiliency on my LAN.  DNS 1 on the RPI and DNS 2 on Unraid.  Not keen to have to add settings and changes twice so looking at auto-synchronisation.

On 5/16/2020 at 5:38 AM, gtosnipey said:

Update: Even after I fixed the issue, it just came back on Version 4.4, I am getting the permission denied for the same folder. Hmmmmm...

 

Error

There was a problem applying your settings.
Debugging information:
PHP error (2): parse_ini_file(/etc/pihole/setupVars.conf): failed to open stream: Permission denied in /var/www/html/admin/settings.php:11

After unsuccessfully changing the branch from 'latest' to 'dev' and running chmod -R 777 /mnt/user/appdata/pihole/ I found a solution:

In my docker config I changed /mnt/cache/appdata/pihole/pihole/ to /mnt/user/appdata/pihole/pihole/ and /mnt/cache/appdata/pihole/dnsmasq.d/ to /mnt/user/appdata/pihole/dnsmasq.d/

All the error message seem to have gone away.

On 6/17/2020 at 10:52 AM, Andrew2019 said:

After unsuccessfully changing the branch from 'latest' to 'dev' and running chmod -R 777 /mnt/user/appdata/pihole/ I found a solution:

In my docker config I changed /mnt/cache/appdata/pihole/pihole/ to /mnt/user/appdata/pihole/pihole/ and /mnt/cache/appdata/pihole/dnsmasq.d/ to /mnt/user/appdata/pihole/dnsmasq.d/

All the error message seem to have gone away.

This brought my whitelist and blacklist back.  You sir are a genius and a god :-) Working with 'latest' on v5.0. Thank you big time!!!

Anyone having issues with the blacklist and whitelist not working in v5.0? Lets say I add a domain to my blacklist "nba.com" for example. No matter what device I use the site isn't blocked. So I tried other sites on the blacklist and it doesn't look like its working.  I can see them listed on the blacklist, I did an update for gravitar, but still no change. Thoughts?

  • 2 weeks later...

pihole just stopped working on me.  I cannot figure out what my problem is. Fully uninstalled and reinstalled.  Still not working.  Doesn't resolve any DNS queries.  Tried changing the servers it uses by editing the docker settings but still nothing.  Where can I look for information on what's going on?

Thanks.

What's the easiest way to setup a cron job in the container?  Or uses the server's crontab to trigger a command in the container?

 

I'm trying to sync 2 Pihole installs, one on a Raspberry PI, and this container. The final step is to run "pihole restartdns reload-lists" in the container to read the sync'd db and custom.list.  Any ideas would be appreciated.

 

For those interested, I just copy (rsync) the gravity.db and custom.list from the RPI directly to the appdata/pihole/ directory on unraid.  The restart command will read the new files in.  I'm simply using cron to kick off the push at 30min past the hour and I want to run the script here at 32min past the hour.  I'm sure there are sexier ways of achieving this but this is already maxing out my technical abilities.  This also assumes the docker version of pihole is running v5.

On 7/3/2020 at 7:05 PM, ZenBuddha said:

pihole just stopped working on me.  I cannot figure out what my problem is. Fully uninstalled and reinstalled.  Still not working.  Doesn't resolve any DNS queries.  Tried changing the servers it uses by editing the docker settings but still nothing.  Where can I look for information on what's going on?

Thanks.

Not sure why, but changing my Network Type from Bridged to Custom: br0 fixed my issues.  I was able to see that DNS was just not responding at all from the logs and using nslookup.  So started playing with the network type and that's what fixed it for me.

  • 2 weeks later...

Pi-hole was working great with version 5.0.  I just updated to version 5.1 and now I see this permanently on the dashboard.  Anyone else seeing this?  Ad-blocking appears to still be working, so the issue is just a reporting one vs. core functionality.

 

pi-hole-51.jpg

Had to clear my browser cache for the pi-hole and "echo 4711 > /var/run/pihole-FTL.port" in the pi-hole docker console.

2 hours ago, RoninTech said:

Pi-hole was working great with version 5.0.  I just updated to version 5.1 and now I see this permanently on the dashboard.  Anyone else seeing this?  Ad-blocking appears to still be working, so the issue is just a reporting one vs. core functionality.

It is just the browser cache that needs to be cleared.  On mobile devices I had to clear my cache.  On Windows 10 in Chrome, all I had to do was a "Ctrl+F5" to refresh and force a bypass of the cache.

11 minutes ago, FDM80 said:

It is just the browser cache that needs to be cleared.  On mobile devices I had to clear my cache.  On Windows 10 in Chrome, all I had to do was a "Ctrl+F5" to refresh and force a bypass of the cache.

FTL wasn't working either for me which was fixed by writing to the port file.  SHIFT+F5 in Brave fixed the display problem for me.

Updated to latest build today, having issues accessing any websites.. Had to access the router and change default DNS to something else.. Nothing on the network received any internet. 

 

Whitelist/blacklist page seems to be empty.. appdata set to /mnt/user/appdata/pihole.. 

 

Everything worked perfect before I updated.. 

So, I'm having issues finding my br0. Bridging is enabled in Network Settings, but still doesn't show. I've tried restarting, re-enabling it etc. Any ideas?

image.png.285d01c44ad8b1f5bb4da994e95001fc.png

image.thumb.png.dff29f09037ef32c3da8f48212a60165.png

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.