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 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
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:


Attachments

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
;; QUESTION SECTION:
;; \240\159\146\169.ws. IN      A

;; ANSWER SECTION:
\240\159\146\169.ws.    300     IN      A       64.70.19.203

;; AUTHORITY SECTION:
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.

;; ADDITIONAL SECTION:
ns2.dns.ws.     172800  IN      A       64.70.19.80
ns3.dns.ws.     172800  IN      A       173.228.153.149
ns4.dns.ws.     172800  IN      A       173.228.153.148
ns7.dns.ws.     172800  IN      A       77.92.65.174

;; Query time: 98 msec
;; SERVER: 192.168.14.42
;; 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).