[Support] devzwf - pihole DoT/DoH


Recommended Posts

  • stop the pihole-dot-doh  container
  • copy the content of 
    /mnt/nvme_cache/appdata/Pihole-DoT-DoH
  • to 
    /mnt/user/appdata/pihole-dot-doh/config/
  • Update your path in unraid pihole for DoT DoH config with the same
  • start the pihole-dot-doh container
  • if all ok delete /mnt/nvme_cache/appdata/Pihole-DoT-DoH
Link to comment
  • 2 weeks later...
  • 2 months later...

All apps on my Android phone are not receiving connections after installing the PiHole.

 

The strange thing is that the PiHole log isn't showing any blocked connections at all. Apps like Supercell's Boom Beach aren't connecting to servers, and neither is another package tracking app Aftership.

 

Both apps just report no connection at all. Taking them off my Wifi network which I am using the Pihole on, they work immediately.

 

I think this is something to do with DoT/DoH.


Does anyone have any ideas?

 

I haven't changed any PiHole settings at all. Just installed it, set it as my default DNS etc. on my router. Nothing more.

 

 

Screenshot_4.png

Edited by plantsandbinary
Link to comment

I figured it out.

 

I had DHCP on my phone. It was set to use 192.168.1.1 as DNS 1 which is my router (blank for DNS 2).

I changed from DHCP to static and 192.168.1.51 for DNS 1 which is my PiHole.

 

I also enabled DNSSEC on my PiHole because it was enabled on my router.

 

PiHole > Tools > Network was showing that not a single query had been made from my phone to the PiHole. As soon as I changed these settings it worked fine. Now it shows green for my phone in the PiHole that it is using the PiHole.

Edited by plantsandbinary
Link to comment

So I have to say, this container is set up in an extremely ....... bad way...

 

When I installed this, I noticed later I have 2 folders in my /appdata...

 

Pihole-Dot-Doh

and

pihole-dot-doh

 

I removed the latter, second one. As I expected it was a left-over folder from another docker container that didn't work/was from an older docker image or repository. It's name didn't match case-sensitive the name of this docker container either.

 

Welp. I just lost all of my settings.

 

Now obviously I should have double checked, but ugh... due to the default spelling this container is making TWO directories with the SAME names in my /appdata directory... those above 2 I just listed. Now I bet 99% of people will not notice when creating or editing the container and checking the mapped directories...

 

image.thumb.png.2d16083fb8ef2cdbd14356883f21bbfb.png

 

Gonna be great fun to completely remake my entire config... and add all those whitelisted domains again.. FFS!

 

I highly recommend you change this. I have 41 containers on my system and none of them have ever made 2 directories in /appdata ever.

Edited by plantsandbinary
Link to comment

I do like when people claim things without checking but that's ok ....

what i can say it is not the template who make this :
 

 <Config Name="pihole config" Target="/etc/pihole/" Default="/mnt/user/appdata/pihole-dot-doh/pihole/" Mode="rw,slave" Description="" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/pihole-dot-doh/pihole/</Config>
  <Config Name="dnsmasq config" Target="/etc/dnsmasq.d/" Default="/mnt/user/appdata/pihole-dot-doh/dnsmasq.d/" Mode="rw,slave" Description="" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/pihole-dot-doh/dnsmasq.d/</Config>
  <Config Name="DoT DoH config" Target="/config/" Default="/mnt/user/appdata/pihole-dot-doh/config/" Mode="rw,slave" Description="" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/pihole-dot-doh/config/</Config>

 

 

ph.PNG

Link to comment

It seems there might be some interaction with CA, or maybe it's if you had the old flippinturt one before?

 

https://raw.githubusercontent.com/devzwf/unraid-docker-templates/master/pihole-dot-doh.xml

 

image.thumb.png.3f07451291c2d566ef1c6d5155a68777.png

 

The template indeed doesn't have an issue, but if I select Install (it'll think it's a new install since the existing one still comes from the old template) then it does put caps.

 

image.png.65330ec2c29418f9e38c7b1a1b31f8c3.png

 

Might be that CA interprets a "/config" path as being supposed to default to the container name and overwrites what's in the template? Might want to ask @Squid.

Edited by Kilrah
Link to comment
1 minute ago, Kilrah said:

It seems there might be some interaction with CA, ir maybe if you had the old flippinturt one before?

 

https://raw.githubusercontent.com/devzwf/unraid-docker-templates/master/pihole-dot-doh.xml

 

The template indeed doesn't have an issue, but if I select Install (it'll think it's a new install since the existing one still comes from the old template) then it does put caps.

 

image.png.65330ec2c29418f9e38c7b1a1b31f8c3.png

 

Might be that CA interprets a "/config" path as being supposed to default to the container name? Might want to ask @Squid.

are you sure you are using my template ?

Link to comment

Yup. There are 3 "Pihole-DoT-DoH" templates with the default container name being that, all 3 have correct paths in the template but for me all of them have it replaced by the container name on install.

 

Seems to be a CA issue.

Edited by Kilrah
Link to comment
  • 4 weeks later...

Any tips?

suddenly getting this while using DoT only in pihole.

Both ips (1.1.1.1/ 1.0.0.1) getting this.

 

2023-06-28T15:00:45Z ERR failed to connect to an HTTPS backend "https://1.1.1.1/dns-query" error="failed to perform an HTTPS request: Post \"https://1.1.1.1/dns-query\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
2023-06-28T15:00:46Z ERR failed to connect to an HTTPS backend "https://1.1.1.1/dns-query" error="failed to perform an HTTPS request: Post \"https://1.1.1.1/dns-query\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
2023-06-28T15:00:46Z ERR failed to connect to an HTTPS backend "https://1.1.1.1/dns-query" error="failed to perform an HTTPS request: Post \"https://1.1.1.1/dns-query\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
2023-06-28T15:00:46Z ERR failed to connect to an HTTPS backend "https://1.1.1.1/dns-query" error="failed to perform an HTTPS request: Post \"https://1.1.1.1/dns-query\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
2023-06-28T15:00:46Z ERR failed to connect to an HTTPS backend "https://1.1.1.1/dns-query" error="failed to perform an HTTPS request: Post \"https://1.1.1.1/dns-query\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
2023-06-28T15:00:46Z ERR failed to connect to an HTTPS backend "https://1.1.1.1/dns-query" error="failed to perform an HTTPS request: Post \"https://1.1.1.1/dns-query\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"

 

Link to comment

There is absolutely something wrong with this docker image. This happens roughly after 24 hours. I've rebuilt the container a few times and always the database becomes read-only. I can't add anything to the whitelist or blacklist afterward. Rebooting it solves the problem but this still always happens eventually.

Screenshot_2.png

 

I've since shut this down and started using AdGuard DNS directly on my router with DNS-over-TLS. The performance is much better and I am not fighting with this container every 5 seconds. It's also overall far more reliable.

Edited by plantsandbinary
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.