From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) by sourceware.org (Postfix) with ESMTPS id 57F1D3858D20 for ; Tue, 11 Apr 2023 13:43:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 57F1D3858D20 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=opensuse.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cristianrodriguez.net Received: by mail-ua1-f52.google.com with SMTP id a38so4942414uax.12 for ; Tue, 11 Apr 2023 06:43:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220632; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XCVxO8tcc6XqFVaDS4xDwUSLAkXiReCzc7UaYxasaTw=; b=sjajWCbUyopvxYF7qUdNxwbJYOdod05vyMZ8WghWKbIhmyHqzaqawJpfvdtEb8xiUy itgan/HkNPxk5zHSmJP7u80BCCZdiElsPOkrNrvwQSsS1y4ECQVyO0zzv+OdHMbrNQ3h JHr8Vi0OIVH8nteYnVabDCU2exvMKPwsMTz1Jl/G5x/ll854eF9kmyQFtK3x6B6LlpkE p8NfEHVnjnPjacHP9UnA1GKsJBdevPeHb4AmadncqBFrPBC1KcmwnDELDzbp2qVhelpJ Rx4jhVS05YVvKN/IA3fBX2/rxgf5wh6RNaspvj3FOzl+P4R4sSdpscULXKgFOIMasl6Q q4IA== X-Gm-Message-State: AAQBX9dJ6h3TlY+1x9aTxJdzMn6ksYu9udbdx8NLaPV2WWP9MMUckQ8M 2qEHjRuwCUa3xk8fsGcopLBAklJR6G7jmpen1TwfJ5M2QNsK5ace X-Google-Smtp-Source: AKy350bc50qzivObPFInqugm0ZsBWxLiZsyM2+YIaF2c871zoATXoFJvmQlnICWQ5rYMjV7tDTnYKYwRp3m8trJBgJY= X-Received: by 2002:a1f:1610:0:b0:43f:cad6:2874 with SMTP id 16-20020a1f1610000000b0043fcad62874mr4508129vkw.1.1681220632593; Tue, 11 Apr 2023 06:43:52 -0700 (PDT) MIME-Version: 1.0 References: <20230406012136.10096-1-crrodriguez@opensuse.org> In-Reply-To: <20230406012136.10096-1-crrodriguez@opensuse.org> From: =?UTF-8?Q?Cristian_Rodr=C3=ADguez?= Date: Tue, 11 Apr 2023 09:43:41 -0400 Message-ID: Subject: Re: [PATCH] resolv: set edns max buffer size to 1232 To: libc-alpha@sourceware.org Content-Type: multipart/alternative; boundary="0000000000009861a605f90fae75" X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,KAM_DMARC_NONE,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000009861a605f90fae75 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ping? should not be a controversial thing to do. Most software out there already does. On Wed, Apr 5, 2023 at 9:21=E2=80=AFPM Cristian Rodr=C3=ADguez wrote: > 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#featur= e-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=C3=ADguez > --- > 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 =3D 1200, > + RESOLV_EDNS_BUFFER_SIZE =3D 1232, > }; > > struct resolv_context; > -- > 2.40.0 > --0000000000009861a605f90fae75--