Changing default IP of blocked domains

Started by JoSSte, October 10, 2024, 05:21:37 PM

Previous topic - Next topic
I have set up Unbound DNS with several of the provided block-lists.

As I understand it the format of those block lists is

0.0.0.0 some.domain.com

I assume that 0.0.0.0 is standard, it has been the value I have seen in all the examples at least.

If some service is listening on all devices (0.0.0.0) on the local machine, on the requested port, the contents of that is served. It should not be a problem in most cases, but I would like to point all the blocked domains either to a container with that IP or to an IP reserved in DHCP to an invalid MAC. is there a way to do this, besides proxying the blocklists and rewriting all the 0.0.0.0 entries?

No need. Since it is a dns lookup, when 0.0.0.0 is returned for the domain, the dns query results in an NXDOMAIN response. At that point the query is finished. No further action is taken by the querying client as it has nowhere to go. The concept of sinkholing.