I want to temporarily block a list of ~8000 DNS domains and their subdomains. I saw the code example below in the docs. I have questions...
- What will the client see? DNS timeout? NXDOMAIN? Can I choose between those two behaviors?
- Will subdomains also be blocked?
- I can certainly format a list of 8000 commands to paste but is there anything wrong with doing it that way?
- Most importantly, how do I undo this when I am done testing?
# Blacklist
uci -q delete dhcp.@dnsmasq[0].server
uci add_list dhcp.@dnsmasq[0].server="/example.com/"
uci add_list dhcp.@dnsmasq[0].server="/example.net/"
uci commit dhcp
/etc/init.d/dnsmasq restart