Skip to content

Commit 144607d

Browse files
committed
[ci skip] [doc only] Explain FQDN
1 parent 572fd1f commit 144607d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

platforms/unix/plugins/SocketPlugin/sqUnixSocket.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@
105105

106106

107107
/*
108-
As per DNS, a full DNS name cannot contain more than 255
109-
characters. Due to the way this is encoded, we end up with
110-
practically 253 usable bytes for any DNS FQDN out there; ther
111-
cannot be a longer one.
112-
113-
Note: this used ot be MAXHOSTNAMELEN. Under POSIX this might be
114-
aliased to HOST_NAME_MAX (or not) and/or max out to 64 characters
115-
(or not). However, that would be the max length of a DNS _Label_,
116-
that is, a part of a DNS name not containing any dots. This is too
117-
limiting. Therefore, we define FQDN_LEN ourselves now.
108+
As per DNS, a full DNS name cannot contain more than 255 characters. Due to
109+
the way this is encoded, we end up with practically 253 usable bytes for any
110+
DNS FQDN (Fully Qualified Domain Name) out there; ther cannot be a longer
111+
one.
112+
113+
Note: this used ot be MAXHOSTNAMELEN. Under POSIX this might be aliased to
114+
HOST_NAME_MAX (or not) and/or max out to 64 characters (or not). However,
115+
that would be the max length of a DNS _Label_, that is, a part of a DNS name
116+
not containing any dots. This is too limiting. Therefore, we define FQDN_LEN
117+
ourselves now.
118118
*/
119119
#define FQDN_LEN 253
120120

0 commit comments

Comments
 (0)