DNS: Fixes for the DNS query module