0

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?

bot47
  • 317
  • 1
  • 4
  • 17

1 Answers1

1

You could make dnsmasq authoritative for those domains with the --auth-zone option, and simply not add any DNS records for those domains.

Dennis Kaarsemaker
  • 19,277
  • 2
  • 44
  • 70