互联网上有阿拉伯语域名,如عربي.امارات
如何在英文域名之间检查此域名是否有效?或者在Windows机器上ping这个?
答案 0 :(得分:1)
您可以使用idn2
工具。
(arth@arth ~) > idn2 'عربي.امارات'
xn--ngbrx4e.xn--mgbaam7a8h
(arth@arth ~) > nslookup $(idn2 'عربي.امارات')
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
Name: xn--ngbrx4e.xn--mgbaam7a8h
Address: 79.98.120.105
(arth@arth ~) > nmap $(idn2 'عربي.امارات') -p80
Starting Nmap 6.40 ( http://nmap.org ) at 2016-08-26 12:09 +07
Nmap scan report for xn--ngbrx4e.xn--mgbaam7a8h (79.98.120.105)
Host is up (0.23s latency).
rDNS record for 79.98.120.105: web-lb0.web.308th.dubai.aeda.net.ae
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.88 seconds