We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689548a commit 8736dd6Copy full SHA for 8736dd6
mirage/stub/dns_stub_mirage.ml
@@ -269,7 +269,7 @@ module Make (S : Tcpip.Stack.V4V6) = struct
269
| None ->
270
let dn, qtyp = question in
271
if Domain_name.count_labels dn = 1 && (qtyp = `K (Rr_map.K A) || qtyp = `K (Rr_map.K Aaaa)) then
272
- let data = `Answer (Name_rr_map.empty, Name_rr_map.empty) in
+ let data = `Rcode_error (Rcode.NXDomain, Opcode.Query, None) in
273
let reply = build_reply header question proto data in
274
Lwt.return (Some reply)
275
else
0 commit comments