Configured my router to route DNS through the pi-hole. The pi has a static ip (192.168.11.6) which is configured as the only DNS server in my router (192.168.11.1), see figure below.
Initially I had the impression the pi-hole was working. The dashboard showed me a lot of queries and also blocks. But after a reboot (I relocated the hardware to its designated spot) I encounter the problems.
I have the gut feeling this is connected to my router settings but I can't pin it yet.
Reading
Section 1. -> Caveats -> 2. : Is it even possible to reach pi.hole this way? If I understand that post correct, I will not be able to reach the pi-hole without accessing the ip directly.
A couple of day later the problem returned. This time it was not solved by a restart of the involved systems.
I can access the dashboard via the pi's IP but not via pi.hole and again the nslookup throws errors and I see ads.
If 192.168.11.6 responds with a proper IP for pi.hole then Pi-hole is configured correctly. Not having experience with that particular router I wouldn't know what settings are needed to have it's internal DNS correctly forward queries to the Pi-hole.
When the problem is happening are there any queries shown in the admin panel query log? Can you run pihole -d and provide us with the token link so that we can check some basic configuration settings for correctness?
sudo nmap -sU -p67 --script dhcp-discover 192.168.11.1
Starting Nmap 7.40 ( https://nmap.org ) at 2019-03-18 08:55 GMT
Nmap scan report for 192.168.11.1
Host is up (-0.19s latency).
PORT STATE SERVICE
67/udp open|filtered dhcps
MAC Address: XX:24:XX:BC:39:XX (Buffalo.inc)
Nmap done: 1 IP address (1 host up) scanned in 12.47 seconds
I am not sure why nmap isnt able to capture DHCP from your router.
Could be some safety mechanism on the router.
If others dont provide a solution, my advice would be to disable the DHCP service on the router and enable it on Pi-hole:
If you cannot disable DHCP on the router, then change the range of DHCP on the router to one IP address, the IP of the Pi-Hole. Then enable DHCP on the Pi-Hole and assign the range outside the IP of the Pi-Hole.
So, after a bit more trial and error I figured a way out to get it working again:
The pi-hole has to be up & running
The router has to be restarted
(in this order!)
It seems as if the the router is up while the pi-hole goes down it relies on a backup DNS that I cannot see or configure via the interface. If the pi-hole gets back up it does not switch to it as DNS server (even if I update the setting for the DNS server IP address). However, restarting the router does the job.
Thanks for all your help so far!