3 ms·
> and total length limit 255 (or thereabouts) The continuous discussion about "thereabouts" is because the 255 bytes limit applies to encoded name fields (in D
by mytailorisrich 7y ago
> and total length limit 255 (or thereabouts)
The continuous discussion about "thereabouts" is because the 255 bytes limit applies to encoded name fields (in DNS messages), not domain names as we usually write them in dotted format.
Since the encoded format is that each label is preceded by its length and the whole domain ends by 'root' (i.e. 0x00) this means that domains names as we usually write them are limited to 253 bytes, including the dots (we don't write the 'root' label and label lengths are replaced by dots except the first one, that's 2 bytes to subtract from 255).