fix negative response and non-response handling for dns queries