as I am german please be indulgent with my english skills.
But I hope to reach more specialists and maybe developers when writing in english.
Lets start:
Maybe important to know
Yesterday I installed PiVPN (GitHub - pivpn/pivpn: The Simplest VPN installer, designed for Raspberry Pi) in order to use Wireguard encrypted VPN to access my network from everywhere by smartphone.
It is fully script based and does the installation and configuration on its own.
Maybe this has changed something on my Pi-Hole?
When I installed it, PiVPN asked to use Pi-Hole as DNS Server for the VPN connection (so it detected the already installed Pi-Hole). I said yes.
Expected Behaviour:
Pi-Hole sends the answer to the IP that requested the DNS - always.
Actual Behaviour:
When starting my iPhone YouTube app (or when opening youtube.com with firefox on my computer) Pi-Hole sends the answer to the wrong IP (to my router ; FritzBox 7590) - not to the device that asks for the DNS / IP. Other requests work fine (as I can say for now)!
One of the smartphones used in this household can connect using wifi to the Network. But somehow it has no internet. The other devices work well (except the youtube problem) as I can figure out for now.
Also important is to know that the Router is the DNS Server as he provides DNS Servers that don't collect data etc. I followed this manual (in german):
But just to add a note here, you should ask the PiVPN team if they have anything in their script that changes Pi-hole settings. We are not as familiar with their script as they are
Well I fought a few minutes now but I am not smart enough to quote as elegant as you .
So I have to answer like this:
Your first post:
Ahhh so I missunderstood. Thanks for your explanation.
In general: Thanks for that quick response - even from a developer. Amazing!
This is not what I am used to .
Your second post:
Of course I would. This was my second idea but I thought you can quickly find the trouble when watching the debug token.
Now I have to add something so you better understand me:
The problem was for me that YouTube didn't work. It started the "frame" so that you can see the rows and colums of the "have a look here"-section. But all images, previews and so on where white. It just didn't load. On my iPhone it even was worse. I got a blank page with a few text saying there are problems and i can click to try again.
Now hold on tight:
I did a reboot on the FritzBox, the attached Switch and the Raspberry Pi which is connected to the switch. Now it works fine. I can't understand what happened. After installation of PiVPN I did reboot all the devices (the Pi several times). It didn't help. Now it works and i am a little afraid that the error will come back.
Simply highlight the text you wish to quote, and then hit the "quote" button
So, looking through your debug log, I notice you have quite a lot of adlists added to your Pi-hole. No harm in this, of course, but it could just be that you are being overly aggressive with your blocking tactics.
I haven't tried blocking ads on Youtube in a long time, as I opted to go with Youtube premium (which I personally think is worth the money , but that's another conversation for another time!) But I do know that the following will have little to no effect (and possibly even prevent normal videos from loading)
Use a modded mobile application (Vanced on android - not sure about iPhone)
Pay for it ()
It's possible, of course, that one of your many blocklists updated and included some domains it should not have. This may have been spotted by the list maintainer and sorted out the next time your Pi-hole updated the lists (usually happens automatically once a week on a Sunday)
In fact there are a some lists. But until now I never had problems when using them. But I found some dead lists that I deleted now. Are there some well maintained lists that are recommended? I just searched using startpage (trying to avoid google) and used what I found.
A few months ago I tried to avoid YouTube ads. There were more Regex rules and so on. But no chance. Nothing worked - like you said. I wonder why I still have these two rules. But until now I had no problems using YouTube - with ads. So the two rules doesn't help at all and will be deleted.
I need to have a look at uBlock etc.
Never heard from vanced - have to look for some iOS alternative.
Update: Seems that Brave Browser works good. For all interested: https://apps.apple.com/de/app/brave-browser-private-internet/id1052879175
Paying would be OK but not at that price. But as you said: another discussion.
This will probably be the most likely explanation.
Anyway. Thank you for your quick response.
You helped me a lot - also to understand the forward issue.