From 144607df34b6653436907470ae313155e942f883 Mon Sep 17 00:00:00 2001 From: Tobias Pape Date: Fri, 27 May 2022 17:35:25 +0200 Subject: [PATCH] [ci skip] [doc only] Explain FQDN --- .../unix/plugins/SocketPlugin/sqUnixSocket.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c b/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c index ea87792a2b..df8a1eec0b 100644 --- a/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c +++ b/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c @@ -105,16 +105,16 @@ /* - As per DNS, a full DNS name cannot contain more than 255 - characters. Due to the way this is encoded, we end up with - practically 253 usable bytes for any DNS FQDN out there; ther - cannot be a longer one. - - Note: this used ot be MAXHOSTNAMELEN. Under POSIX this might be - aliased to HOST_NAME_MAX (or not) and/or max out to 64 characters - (or not). However, that would be the max length of a DNS _Label_, - that is, a part of a DNS name not containing any dots. This is too - limiting. Therefore, we define FQDN_LEN ourselves now. + As per DNS, a full DNS name cannot contain more than 255 characters. Due to + the way this is encoded, we end up with practically 253 usable bytes for any + DNS FQDN (Fully Qualified Domain Name) out there; ther cannot be a longer + one. + + Note: this used ot be MAXHOSTNAMELEN. Under POSIX this might be aliased to + HOST_NAME_MAX (or not) and/or max out to 64 characters (or not). However, + that would be the max length of a DNS _Label_, that is, a part of a DNS name + not containing any dots. This is too limiting. Therefore, we define FQDN_LEN + ourselves now. */ #define FQDN_LEN 253