When adding to /etc/pihole/pihole-FTL.conf "PIHOLE_PTR=NONE" or "PIHOLE_PTR=false" the resolver should not resolve the pi.hole dns request and instead use the one i've set in pihole "home.local".
I've also tried modifying /etc/lighttpd/conf-available/15-pihole-admin.conf at the line
Tried also to reboot and to restart the dns resolver.
Actual Behaviour:
After doing those modifications and following guides and tickets, it doesn't work.
When i search for "home.local" i get "DNS_PROBE_FINISHED_NXDOMAIN".
When i search for "pi.hole" it works, i can see pihole on port 8080 and my webapp (nginx) hosted on port 80
Be aware that .local is reserved for use by the mDNS protocol and should NOT be used with DNS.
It would depend on the browser you use and the specific OS it is running on whether a browser would support mDNS resolution or not (e.g. Safari on macOS does use mDNS, Chrome on WIndows doesn't).
In your case, .local is also different from the local search domain fritz.box as defined by your router.
@Bucking_Horn I'd like to change the DNS mapping which pihole provides by default (pi.hole) to something else.
On the pinhole host I have another web service (port 80) which I would like to be able to call via another DNS (i.e. home.local or something else than pi.hole)
You'd need to move Pi-hole's lighttpd to another port and install another webserver that listens on port 80 instead.
Your debug log suggests you've successfuly done the former, but there seems to be no webserver listening on port 80, just Docker's docker-proxy:
*** [ DIAGNOSING ]: Ports in use
tcp:0.0.0.0:8080 is in use by lighttpd
[✗] tcp:0.0.0.0:80 is in use by docker-proxy (https://docs.pi-hole.net/main/prerequisites/#ports)
tcp:[::]:8080 is in use by lighttpd
[✗] tcp:[::]:80 is in use by docker-proxy (https://docs.pi-hole.net/main/prerequisites/#ports)
###############################################################################
# FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE INSTALL/UPDATE PROCEDURE. #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
###############################################################################
In addition, changing that file won't have an effect on your aspired outcome, as it is nginx that is taking your standard HTTP requests on port 80, i.e. your lighttpd on port 8080 never sees them.
That dig output confirms that
a) Pi-hole does reply correctly
b) .local should not be used with DNS
You've only done so for IPv4.
You should do the same for IPv6.
As pointed out already (and confirmed by your dig result above), .local is reserved for use by the mDNS protocol and should NOT be used with DNS.
If you must insist on using home.local, you should really remove that DNS record from Pi-hole and use a browser that supports mDNS on an OS that supports mDNS, preferably in a network that is fully mDNS aware.