3 ms·
Certain things such as DNS, email addresses and so on should be restricted to ASCII, it’s a security nightmare otherwise.
by goatinaboat 7y ago
Certain things such as DNS, email addresses and so on should be restricted to ASCII, it’s a security nightmare otherwise.
- bartwe 7y agoI assume you mean a limited subset of 7bit ascii ? 33-126
- JdeBP 7y ago% host -t a $'\015'. 1 \015: 19 bytes, 1+0+0+0 records, response, authoritative, nxdomain query: 1 \015 % It's not as straightforward or sensible as you think. It's case insensitive; it's case preserving; and C0 control characters, SPC, and DEL are allowed. The case differentiating bits for letters are nowadays sometimes used in an attempt to foil attackers. If you want things to look back on and say "I think that X was a mistake." then forget UTF of any stripe. The DNS is full of them.
- zokier 7y agoI thought DNS allowed any arbitrary byte sequence as label (up to max length limit)