darkxanter/punycode_converter

RFC 1035

Closed this issue · 0 comments

First off many thanks for closing #1 so quickly!

This issue is an extension of that one. RFC 1035, section 2.3.1 (bottom of page 7) has a few additional requirements:

The labels must follow the rules for ARPANET host names. They must
start with a letter, end with a letter or digit, and have as interior
characters only letters, digits, and hyphen. There are also some
restrictions on the length. Labels must be 63 characters or less.

My library would benefit from checking for the leading or trailing hyphen.

Sorry to not include this in the previous issue.