[GH-ISSUE #81] Punycode/IDNA support #60

Open
opened 2026-03-14 01:11:08 +03:00 by kerem · 0 comments
Owner

Originally created by @ainar-g on GitHub (May 15, 2025).
Original GitHub issue: https://github.com/ameshkov/dnslookup/issues/81

dnslookup 'пример.рф' 8.8.8.8
2025/05/15 15:36:44 [fatal] Cannot make the DNS request: bad question section: mismatched name "\\208\\191\\209\\128\\208\\184\\208\\188\\208\\181\\209\\128.\\209\\128\\209\\132."

Looks like dnslookup is sending IDNA queries as-is, without encoding them into Punycode. This makes testing IDNA support in DNS harder, as one basically has to encode the IDNA into Punycode themselves.

Originally created by @ainar-g on GitHub (May 15, 2025). Original GitHub issue: https://github.com/ameshkov/dnslookup/issues/81 ```sh dnslookup 'пример.рф' 8.8.8.8 ``` ```none 2025/05/15 15:36:44 [fatal] Cannot make the DNS request: bad question section: mismatched name "\\208\\191\\209\\128\\208\\184\\208\\188\\208\\181\\209\\128.\\209\\128\\209\\132." ``` Looks like `dnslookup` is sending IDNA queries as-is, without encoding them into Punycode. This makes testing IDNA support in DNS harder, as one basically has to encode the IDNA into Punycode themselves.
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/dnslookup#60
No description provided.