get query domain from dns package