Pi-Hole behavior when blocking a host

@dschaper I would love to add some internal checks when we have TVE streams fail to identify if something accidentally was blocked that hurt the stream.

Is there a standard IP address that is returned when a hostname is blocked that we could check for? My idea is if we have a failed HTTP GET that we would identify what the IP address was for the hostname and report a better error message when that happens.

Pi-hole basically has 3 main modes when it comes to IP addresses.

  1. The default which returns a null route (0.0.0.0) address for blocked domains.
  2. Return an NXDOMAIN for a blocked domain.
  3. The old default of letting the user specify an IP address (or using the IP address of the Pi-hole server.) We used to do that for implementing a blocked domain page but we are deprecating that because of the prevalence of TLS. Most of those addresses will be in RFC1918 space.

A lot of blocking projects are using null routing (0.0.0.0) now as the way to sinkhole.

(For more details and a bit on how we do IPv6, please see Blocking mode - Pi-hole documentation).

Let me know if you have any questions, I'm very happy to help out where/if I can.

2 Likes