Skip to content

Labels containing * or ! #1047

Answered by rthalley
TauPan asked this question in Q&A
Feb 13, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Domain names are sequences of labels, and labels can contain any octet value. So !, *, NUL, even embedded "." are ok! You don't see them often, as most domain names you encounter are used as hostnames (or parts of them) and are subject to more restrictions (RFC 1123 which updates RFC 952). IDNA names are also subject to their own, incredibly complicated, sets of rules in two different rule systems (IDNA 2003 and IDNA 2008). Note that IDNA = "Internationalized Domain Names in Applications", and it's the "in Applications" part that is restricting things. When you apply the IDNA 2008 codec it will enforce those rules, and "!" is disallowed because it is in the DISALLOWED range per RFC 5892 s…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rthalley
Comment options

@TauPan
Comment options

Answer selected by TauPan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants