adding partial DNS query code