This server works only when you want to intercept DNS requests. If you want to enforce this even when the target product have hard coded DNS servers like 8.8.8.8, or if you just need to log all DNS traffic, some iptables trickery is required on your router,