fn response_matches_request(request: &Message, response: &Message) -> boolExpand description
Very basic validation that a nameserver response matches a message:
-
Check the ID, opcode, and questions match the question.
-
Check it is a response.
-
Check the response code is either
NoErrororNameError. -
Check it is not truncated.