Skip to content

allow additional characters in TLDs for CNAME records#1182

Closed
mdonoughe wants to merge 1 commit intodesec-io:mainfrom
mdonoughe:punycode-cname
Closed

allow additional characters in TLDs for CNAME records#1182
mdonoughe wants to merge 1 commit intodesec-io:mainfrom
mdonoughe:punycode-cname

Conversation

@mdonoughe
Copy link
Copy Markdown
Contributor

I don't really understand what this regex is supposed to be accomplishing. Apparently, the intention is that the validation is only supposed to allow domains that are both syntactically valid and have a valid ICANN TLD, but the TLD validation is not compatible with punycode TLDs because they have hyphens. This could probably be done better. I just copied the character class from the repeating part to the terminal part.

There doesn't need to be a backend change for this. I've been using punycode TLDs with CNAMEs through the API and by using $0.click() in the browser developer tools.

Copy link
Copy Markdown
Member

@peterthomassen peterthomassen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks.

@peterthomassen
Copy link
Copy Markdown
Member

peterthomassen commented Mar 12, 2026

done via #1195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants