From 0372e14d79a7adf0c654340859fe96d3e8cac8a2 Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Tue, 20 Dec 2022 11:42:51 -0500 Subject: [PATCH] net/dns: bump DNS-over-TCP size limit to 4k We saw a few cases where we hit this limit; bumping to 4k seems relatively uncontroversial. Change-Id: I218fee3bc0d2fa5fde16eddc36497a73ebd7cbda Signed-off-by: Andrew Dunham --- net/dns/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/dns/manager.go b/net/dns/manager.go index 7d7d29689..00fb7029e 100644 --- a/net/dns/manager.go +++ b/net/dns/manager.go @@ -427,8 +427,8 @@ const ( // The RFCs don't specify the max size of a TCP-based DNS query, // but we want to keep this reasonable. Given payloads are typically // much larger and all known client send a single query, I've arbitrarily - // chosen 2k. - maxReqSizeTCP = 2048 + // chosen 4k. + maxReqSizeTCP = 4096 ) // dnsTCPSession services DNS requests sent over TCP.