Blocking sometimes work sometimes not

Hi,

I have a Compal modem from UPC(white ugly box) in which it is impossible to set DNS. This option is blocked.

I have disabled DHCP in Compal for IPv4 and for IPv6
I have enabled DHCP in Pihole.
All clients are visible in Pihole DHCP list.

In Windows 10, the ipconfig /all command shows Pihole as DNS

Nevertheless, I can't block the sites. I added cnn.com to the blacklist and I could still visit the site sometimes. What is the problem?

Debug Token:

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

That doesn't seem to be the case:
Besides your Pi-hole, your router's DHCP server is still active in your network, distributing two public IPv4 addresses as DNS servers.

*** [ DIAGNOSING ]: Discovering active DHCP servers (takes 10 seconds)
   Scanning all your interfaces for DHCP servers
   
   * Received 548 bytes from eth0:192.168.0.1
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.0.1
      router: 192.168.0.1
      dns-server: 62.179.1.61
      dns-server: 62.179.1.63
      domain-name: "home"
      --- end of options ---
    
   * Received 300 bytes from eth0:192.168.0.100
     Offered IP address: 192.168.0.238
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.0.100
      dns-server: 192.168.0.100
      domain-name: "home"
      router: 192.168.0.1
      --- end of options ---

Note that DHCP is strictly IPv4.
Since your network is not configured as expected for IPv4, I suspect your router to advertise its IPv6 address as DNS server as well.

Please share the DNS section of that output.

Thank you for your reply. At some point after router reset, everything started to work. Unfortunately I don't know why but during the night the router turned on dhcp by itself.

I disabled dhcp again and it looks like everything is working for now.

Here is another log:

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

Here is ipconfig:

I also don't know why I can't update gravity.

In /etc/resolv.conf I have:

domain home
nameserver 127.0.0.1

When I change adress to 192.168.0.1 (router IP) I can update gravity. But I would have to do it every time at the time of pihole reset or unplugging

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