How do you do this with Windows firewall?
iptables -I INPUT --in-interface ! lo -p udp --dport 53 -j DROP
Ideally, if you can do this with netsh
and so that it will survive whatever it is that Microsoft does with "Add Role".
(Most of the net programming advice for netsh advfirewall
seems to be about punching holes in the default configuration, not about securing stuff with it)