[GH-ISSUE #321] Support IDNA and Punycode #147

Closed
opened 2026-03-07 22:27:53 +03:00 by kerem · 0 comments
Owner

Originally created by @bluejekyll on GitHub (Dec 30, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/321

https://tools.ietf.org/html/rfc5891

This should make names simpler to deal with and fixes the UTF8 assumption issue #139. TRust-DNS should drop all utf8 from being encoded to the wire, and replace it with punycode. UTF8 should be used as an interface into the library. So while Name can contain UTF8, LowerName (need a better name) should not and be only u8 labels.

This will also improve string case comparison, as discussed here: https://www.reddit.com/r/rust/comments/7my0m0/making_trustdns_faster_than_bind9/

Also see cleanup options for labels and Names here: https://users.rust-lang.org/t/making-trust-dns-faster-than-bind9/14727

Originally created by @bluejekyll on GitHub (Dec 30, 2017). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/321 https://tools.ietf.org/html/rfc5891 This should make names simpler to deal with and fixes the UTF8 assumption issue #139. TRust-DNS should drop all utf8 from being encoded to the wire, and replace it with punycode. UTF8 should be used as an interface into the library. So while `Name` can contain UTF8, `LowerName` (need a better name) should not and be only `u8` labels. This will also improve string case comparison, as discussed here: https://www.reddit.com/r/rust/comments/7my0m0/making_trustdns_faster_than_bind9/ Also see cleanup options for labels and Names here: https://users.rust-lang.org/t/making-trust-dns-faster-than-bind9/14727
kerem 2026-03-07 22:27:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#147
No description provided.