summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorCristian Rodríguez <cristian@rodriguez.im>2023-04-07 03:52:52 -0400
committerGitHub <noreply@github.com>2023-04-07 09:52:52 +0200
commite144a26306dbe07fe37f294301421a938b781247 (patch)
tree259e548af9d5cc274e7c4a14cdadfea94c60f1a9 /src/resolve
parent1e094cb4ba258496dd8b210658106f3d196252a2 (diff)
downloadsystemd-e144a26306dbe07fe37f294301421a938b781247.tar.gz
resolve: change DNS_PACKET_UNICAST_SIZE_LARGE_MAX to 1232 (#27171)
The old common default was 4096, until 2020 on which all DNS servers (verified on BIND9, NSD, Unbound, dnsmasq) switched to 1232 as an agreed max size [1]. [1] https://www.dnsflagday.net/2020/#message-size-considerations
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-packet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-packet.h b/src/resolve/resolved-dns-packet.h
index 505e3e7ba9..e4d3e94c68 100644
--- a/src/resolve/resolved-dns-packet.h
+++ b/src/resolve/resolved-dns-packet.h
@@ -55,8 +55,8 @@ assert_cc(sizeof(DnsPacketHeader) == 12);
/* RFC 1035 say 512 is the maximum, for classic unicast DNS */
#define DNS_PACKET_UNICAST_SIZE_MAX 512u
-/* With EDNS0 we can use larger packets, default to 4096, which is what is commonly used */
-#define DNS_PACKET_UNICAST_SIZE_LARGE_MAX 4096u
+/* With EDNS0 we can use larger packets, default to 1232, which is what is commonly used */
+#define DNS_PACKET_UNICAST_SIZE_LARGE_MAX 1232u
struct DnsPacket {
unsigned n_ref;