Pi-Hole does not work on network

I had working setup of pi-hole. But for some reasson dns blocking stopped working.
My pi is at 192.168.188.63 and gateway is a Fritzbox on 192.168.188.1. If I set both dns on the Fritz to the pi then addresses are not resolved by the pi. See debug log.

Expected Behaviour:

Normally every dns lookup from my network would go to the pi.

Actual Behaviour:

There is no dns resolving from pi-hole.

Debug Token:

https://tricorder.pi-hole.net/wdh76icr07

I do not use Lighttpd but apache2, this was not a problem earlier.
I did have ufw installed, but disabled it for testing.
On this pi I run apache, domoticz and wireguard.
Please advise how to solve this.

Your Fritz!Box does announce itself as DNS server via DHCP

canning all your interfaces for DHCP servers
   Timeout: 10 seconds
   
   * Received 548 bytes from eth0:192.168.188.1
     Offered IP address: 192.168.188.63
     Server IP address: 192.168.188.1
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.188.1
      lease-time: 864000 ( 10d )
      renewal-time: 432000 ( 5d )
      rebinding-time: 756000 ( 8d 18h )
      netmask: 255.255.255.0
      router: 192.168.188.1
      dns-server: 192.168.188.1
      domain-name: "fritz.box"
      broadcast: 192.168.188.255
      ntp-server: 192.168.188.1
      Unknown option 158 with length 5
      --- end of options ---

   * Received 548 bytes from wlan0:192.168.188.1
     Offered IP address: 192.168.188.62
     Server IP address: 192.168.188.1
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.188.1
      lease-time: 864000 ( 10d )
      renewal-time: 432000 ( 5d )
      rebinding-time: 756000 ( 8d 18h )
      netmask: 255.255.255.0
      router: 192.168.188.1
      dns-server: 192.168.188.1
      domain-name: "fritz.box"
      broadcast: 192.168.188.255
      ntp-server: 192.168.188.1
      Unknown option 158 with length 5
      --- end of options ---
    
   DHCP packets received on interface lo: 0
   DHCP packets received on interface eth0: 1
   DHCP packets received on interface wlan0: 1

How did you setup DNS in your Fritz!Box? Have a look at the guide and see if you can fix it
https://docs.pi-hole.net/routers/fritzbox/

Thank you yubiuser, for taking time for this.
I've set up the FritzBox via:
Internet -Account Information - DNS-server: Use other DNSv4 servers: 192.168.188.63 and the dns of my provider. If I change the second one to the pi too, I will loose my internet at the moment. I tried and got a lot of screaming from around the house. :wink:
Earlier, this setup was working well. I did not change that.

Try to distribute Pi-hole as DNS server via DHCP. You need to reconnect the devices to the network once you changed the settings to pickup the changes.

Then the Fritz!Box (and at the moment all you clients) will bypass Pi-hole at some point.

Do it when they are not at home :wink:

Okay,
I've set:
Internet -Account Information - DNS-server, to: "Use DNSv4 servers assigned by the internet service provider (recommended)"
Is that okay then?
And:
Home Network - Network - Network settings - IPv4 Configuration - Local DNS server: 192.168.188.63.
I looks like it is working again. :smiley:
The advantage is that I do see my clients in Pi-Hole, But I do not have a fall back dns server when the rpi4/pihole is offline.

This is Ok.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.