fn response_matches_request(request: &Message, response: &Message) -> bool
Expand 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
NoError
orNameError
. -
Check it is not truncated.