How does one configure UFW to allow private DNS requests, but block DNS requests from internet

view story

http://serverfault.com – I have an Ubuntu Server 12.04, with two network cards: eth0 is connected to the internet eth1 is connected to a private network ( The server is configured as a gateway and hosts DNS and DHCP fro the private network. Computers in the private network (say with IP address can successfully connect to the internet. The UFW rules look as follows: Status: active To Action From -- ------ ---- 22 ALLOW Anywhere 80 ALLOW Anywhere 443 (HowTos)