How do I block an entire domain with OpenWrt?

@TomJones, welcome to the community!

Placing domain in iptables like that doesn't work.

The easiest ways would be to:

  • Use Adblock to blacklist the domain (will prodice an NXDOMAIN response)
  • Redirect lookups to a nonexistent DNS server (long timeout period after failed resolution)

Screenshot%20from%202019-10-28%2017-52-21

3 Likes