diff --git a/json-dns/response.go b/json-dns/response.go index e3b0f38f..8bfd3635 100644 --- a/json-dns/response.go +++ b/json-dns/response.go @@ -29,7 +29,7 @@ import ( ) // The largest well-formed 64 KiB DNS response can be serialized into ~18 MiB of JSON, if not pretty-printed. -// (4079 MINFO records, each with NAME = RMAILBX = EMAILBX = ("<"*63 + ".") * 3 + "<"*61 + ".") +// (4079 MINFO records, each with NAME = RMAILBX = EMAILBX = ("\uXXXX"*63 + ".") * 3 + "\uXXXX"*61 + ".") // That is too large as a practical size limit. Also, there is actually no upper limit if pretty-printed. // So, I'll set the limit to 1 MiB as for now. We can increase it if we do need more. const ReasonableJSONResponseLengthLimit = 1048576