Pihole not working Raspi

Expected Behaviour:

Raspberry Pi 4, fresh install of pi-hole with static IP assigned from router (Deco M5) to the pi of 198.168.68.125

Additionally, via dhcpcd.conf file I have created these setting to ensure static IP:

interface wlan0
static ip_address=192.168.68.125/24
static routers=192.168.68.1
static domain_name_servers=192.168.68.1

The device is wifi connected only.

Actual Behaviour:

No ads are being blocked and when I reviewed network activity, there are no uses of pi-hole from any listed devices.

Debug Token:

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

Revise your network configuration and your router settings. Your router advertises two DNS server via DHCP to your clients - neither is your Pi-hole.

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the wlan0 interface:
    192.168.68.125/24

*** [ DIAGNOSING ]: Discovering active DHCP servers (takes 10 seconds)
   Scanning all your interfaces for DHCP servers
   Timeout: 10 seconds
   
   * Received 300 bytes from wlan0:192.168.68.1
     Offered IP address: 192.168.68.125
     Server IP address: N/A
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.68.1
      lease-time: 7200 ( 2h )
      netmask: 255.255.255.0
      router: 192.168.68.1
      dns-server: 192.168.254.254
      dns-server: 192.168.68.1
1 Like

I have a more limited knowledge of networking and I really appreciate your help here.

My router's DHCP settings shows a start IP 192.168.100 and end IP 192.168.68.1 with a default gateway of 192.168.68.1. Additionally, I have the ability to assign a Primary DNS and Seconday DNS.

I tried to assign the primary DNS the same as the static IP of my Pi but as my home quickly became a Faraday cage, I assume I failed.

There is no reliable concept of primary and secondary, despite the labels. Given multiple
DNS Servers, clients are free to use any of them at any time.

With some clients and routers, in the absence of two entries in the "primary" and "secondary" boxes, the client or ISP will fill in the second silently. To avoid this, put an entry in each spot, and make sure each entry is a Pi-hole or leads nowhere.

Assume Pi-hole IP is 192.168.0.150

Try to enter this twice. Some routers don't allow duplicate entries, some do.

If you cannot enter this twice, put an unused IP from your LAN range in the second spot.

Pi-hole also has the option of being your network DHCP server. This has some advantages as described here:

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