util/dnsname: increase maxNameLength to account for trailing dot

Fixes #17788

Signed-off-by: Fran Bull <fran@tailscale.com>
This commit is contained in:
Fran Bull
2025-11-06 14:53:22 -08:00
committed by franbull
parent e8d2f96449
commit 27a0168cdc
2 changed files with 33 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const (
// maxLabelLength is the maximum length of a label permitted by RFC 1035.
maxLabelLength = 63
// maxNameLength is the maximum length of a DNS name.
maxNameLength = 253
maxNameLength = 254
)
// A FQDN is a fully-qualified DNS name or name suffix.