finally got the DNS query working