I should be able to just do homeserver.lan:XXXX and access the web services like I used to.
Actual Behaviour:
I recently bought a raspberry pi zero 2w and installed pi-hole on it. I installed stubby and use pi-hole as a ad-blocker and a recursive DNS server. I am using OpenWrt as my router/firewall. I have set static lease for my home server with the hostname homeserver and OpenWrt automatically adds the .lan to all static lease hostnames. Now after I installed pi-hole on my raspberry pi zero 2w I cannot access the services by visiting homeserver.lan:XXXX, but I can type the IP address manully and go to the service. If I turn off pi-hole, of course I loose internet connection because I have don't have DNS access, but I can access the homeserver.lan:XXXX services.
Debug Token:
I see a lot of personal information in the logs, like there is no need to see which domains I visit.. Is this really necessary?
How is Pi-hole a recursive DNS server in this setup?
Yes. Only a few of us on the Pi-hole team have access to your debug log, the log auto-expires in 48 hours, and the information in the debug log helps us to help you.
Please provide some examples - queries for the domain, answer from Pi-hole etc.
Pi-hole can only resolve local domains for which it knows the IP. Otherwise, it forwards the query to your upstream DNS resolver (depending on your Pi-hole settings) and the upstream resolver will also be unable to resolve your local domains.
I think I found the solution, I added the local domains I wanted to the Local DNS -> DNS Records now I can use the local domains like homeserver.lan, except one openwrt.lan this is automatically assigned to all openwrt routers. I did add this record as well but this doesn't seem to work. All the records I added in the list are on the same network/subnet.