]> git.proxmox.com Git - pve-installer.git/commit
common: fqdn: do not allow overlong FQDNs as per Debian spec
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 15 Feb 2024 12:39:34 +0000 (13:39 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Feb 2024 15:38:45 +0000 (16:38 +0100)
commitd932ec49fa314a0a320bb396644cb83000c219b8
tree8ac4ef70f807eda995a1458415c617196ed0ef7d
parentc8b7a3d36e1d2edec68aa9007cc482eceb7a6f1c
common: fqdn: do not allow overlong FQDNs as per Debian spec

Debian limits labels to 63 characters each and the total length to 253
characters [0].

While at it, reference all the RFCs that apply when parsing FQDNs.

[0] https://manpages.debian.org/stable/manpages/hostname.7.en.html

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-installer-common/src/utils.rs