implemented the asynchronous dns query