Commit e0e7f62e authored by Marek Vavrusa's avatar Marek Vavrusa

testserver: respond SERVFAIL when no match

parent a973d797
......@@ -174,7 +174,7 @@ class TestServer:
dprint ("[ handle_query ]", "raw response found")
else:
response = dns.message.make_response(query)
response.rcode = dns.rcode.SERVFAIL
response.set_rcode(dns.rcode.SERVFAIL)
data_to_wire = response.to_wire()
dprint ("[ handle_query ]", "response failed, SERVFAIL")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment