I'd like to setup dnsmasq as DNS-only server for blocking certain domains. But instead of having it return 127.0.0.1
or 0.0.0.0
or such, I'd like it to respond with a No such name.
just as if the name does not exist at all.
How to I filter certain domains?
You could make dnsmasq authoritative for those domains with the
--auth-zone
option, and simply not add any DNS records for those domains.