]> Cypherpunks repositories - gostls13.git/commit
net: send EDNS(0) packet length in DNS query
authorIan Lance Taylor <iant@golang.org>
Tue, 15 Feb 2022 21:46:56 +0000 (13:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Mar 2022 00:37:10 +0000 (00:37 +0000)
commit301fd8ac8b6cd93708ad536eb054e1b081982a9b
tree86791a74d07f9b903cd0cb8901710e2757ee6a4a
parentd3672054fb58d5eaa241f15fa9d7fb9d61e9ac05
net: send EDNS(0) packet length in DNS query

Advertise to DNS resolvers that we are willing and able to accept up
to 1232 bytes in a DNS packet. The value 1232 was chosen based on
https://dnsflagday.net/2020/.

For #6464
For #21160
For #44135
For #51127
Fixes #51153

Change-Id: If9182d5210bfe047cf0a4d46163effc6812ab677
Reviewed-on: https://go-review.googlesource.com/c/go/+/386016
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go