Simple DNS query code