public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] resolv: set edns max buffer size to 1232
@ 2023-04-06  1:21 Cristian Rodríguez
  2023-04-11 13:43 ` Cristian Rodríguez
  0 siblings, 1 reply; 5+ messages in thread
From: Cristian Rodríguez @ 2023-04-06  1:21 UTC (permalink / raw)
  To: libc-alpha; +Cc: Cristian Rodríguez

Year 2020, Large scale DNS operators and software vendors
agreed to set the maximum edns buffer size to 1232.

BIND9(1), NSD(2), unbound (3), dnsmasq etc  currently use this as
default, libc resolver should too.

1. https://downloads.isc.org/isc/bind9/9.16.8/doc/arm/html/notes.html#feature-changes
2. https://www.nlnetlabs.nl/news/2020/Oct/08/nsd-4.3.3-released/
3. https://www.nlnetlabs.nl/news/2020/Oct/08/unbound-1.12.0-released/

Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
---
 resolv/resolv-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h
index c55f3c0366..c79d5f2135 100644
--- a/resolv/resolv-internal.h
+++ b/resolv/resolv-internal.h
@@ -67,7 +67,7 @@ enum
        spoofing attacks because the randomness in a DNS packet is
        concentrated in the first fragment (with the headers) and does
        not protect subsequent fragments.  */
-    RESOLV_EDNS_BUFFER_SIZE = 1200,
+    RESOLV_EDNS_BUFFER_SIZE = 1232,
   };
 
 struct resolv_context;
-- 
2.40.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-14 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06  1:21 [PATCH] resolv: set edns max buffer size to 1232 Cristian Rodríguez
2023-04-11 13:43 ` Cristian Rodríguez
2023-04-12 12:40   ` Adhemerval Zanella Netto
2023-04-14 11:38     ` Adhemerval Zanella Netto
2023-04-14 16:06       ` Cristian Rodríguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).