Please correct to `and then the specified regexp is applied` in the first sentence.    For the second sentence can phrased as `Then, another DNS query is performed for the results of the PTR query and all the received addresses are compared with the peer address.`