Bug 221101 - /sbin/ping does not handle IDN
Summary: /sbin/ping does not handle IDN
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2017-07-30 10:37 UTC by Zane C. Bowers-Hadley
Modified: 2019-01-21 18:37 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Zane C. Bowers-Hadley 2017-07-30 10:37:53 UTC
[kitsune@vixen42]/home/kitsune% drill \U+1F4A9.ws
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 22719
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 4
;; \240\159\146\169.ws. IN      A

\240\159\146\169.ws.    300     IN      A

ws.     172800  IN      NS      ns3.dns.ws.
ws.     172800  IN      NS      ns4.dns.ws.
ws.     172800  IN      NS      ns5.dns.ws.
ws.     172800  IN      NS      ns7.dns.ws.
ws.     172800  IN      NS      ns2.dns.ws.
ws.     172800  IN      NS      ns6.dns.ws.

ns2.dns.ws.     172800  IN      A
ns3.dns.ws.     172800  IN      A
ns4.dns.ws.     172800  IN      A
ns7.dns.ws.     172800  IN      A

;; Query time: 98 msec
;; WHEN: Sun Jul 30 05:35:20 2017
;; MSG SIZE  rcvd: 217
[kitsune@vixen42]/home/kitsune% ping \U+1F4A9.ws
ping: cannot resolve 💩.ws: Unknown server error
Exit 68
Comment 1 Conrad Meyer freebsd_committer 2017-07-30 15:46:58 UTC
Neither does ping on Linux.

Should it, at least by default (without a flag)?
Comment 2 Zane C. Bowers-Hadley 2017-07-31 02:49:59 UTC
Regardless of if a flag is being passed or not, it likely would be a good idea to support IDN, even if a flag is required.

On another note, traceroute does not like unicode characters as well.

[kitsune@vixen42]/home/kitsune% traceroute \U+1F4A9.ws
traceroute: unknown host 💩.ws
Exit 1
Comment 3 Morgan Wesström 2019-01-21 18:37:53 UTC
I ran into this issue too on RELEASE-12. I can add /usr/bin/host to the list. I noticed that WITH_BIND_IDN has been removed as an option for /etc/src.conf which used to make this work in older versions (before 10 I think).