Jump to content

Unraid Pi-hole Docker Issue

Go to solution Solved by FilipposTechGR,

I’d double check the container template in Unraid and make sure both /etc/pihole and /etc/dnsmasq.d are mapped to persistent paths on your array or cache drive.

Also, the ‘DNS resolution is currently unavailable’ error means Pi-hole can’t reach upstream DNS on first boot, so it can’t build the gravity list. Try setting an explicit DNS in the container settings like 1.1.1.1 or 8.8.8.8 and restart.

Verify volume mappings.

Make sure /etc/pihole is writable.

Set an upstream DNS manually for first boot.

Once those are fixed, the WebUI should come up and gravity.db will be created.

I've been trying for an hour but I can't get any Pi-hole app on Unraid to work for me.

Using the binhex-official-pihole app I can never connect to the WebUI, and the log stops on an error image.thumb.png.dae92f15e7a8163163b8c3d40b52c553.png

 

Using the Pihole-DoT-Doh app with the same settings, I can get into the WebUI but I get Error (-2) in the Domains on List box.

Not sure if the issues are linked or if there was a prerequisite setting I needed to configure, but none of the fixes I can find on Google solve the issue. Any leads would be much appreciated!

Link to comment
https://linustechtips.com/topic/1622032-unraid-pi-hole-docker-issue/
Share on other sites

Link to post
Share on other sites

I’d double check the container template in Unraid and make sure both /etc/pihole and /etc/dnsmasq.d are mapped to persistent paths on your array or cache drive.

Also, the ‘DNS resolution is currently unavailable’ error means Pi-hole can’t reach upstream DNS on first boot, so it can’t build the gravity list. Try setting an explicit DNS in the container settings like 1.1.1.1 or 8.8.8.8 and restart.

Verify volume mappings.

Make sure /etc/pihole is writable.

Set an upstream DNS manually for first boot.

Once those are fixed, the WebUI should come up and gravity.db will be created.

Link to post
Share on other sites

11 minutes ago, FilipposTechGR said:

Also, the ‘DNS resolution is currently unavailable’ error means Pi-hole can’t reach upstream DNS on first boot, so it can’t build the gravity list. Try setting an explicit DNS in the container settings like 1.1.1.1 or 8.8.8.8 and restart.

That did it! Thanks!

Link to post
Share on other sites

If you're going to use google or cloudflare dns; I'd also recommend setting up a DoH / DoT recursive proxy like Cloudflared or Unbound; then you point your Pi-Hole to your DoH/DoT Proxy as the upstream. That way your DNS will be secured over TLS. 

 

That might be what the 'pihole-doh-dot' container is; which means you have to configure the external dns in the recursive proxy part of it rather than the pihole upstream. 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×