Дата: 2010-11-19 12:07:07
Комментариев: 2
Устанавливаем из репозитария idn:
Код:
$sudo apt-get install idn

Пингуем:
$ping `idn президент.рф`
libidn 1.15
Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson.
GNU Libidn comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Libidn under the terms of
the GNU Lesser General Public License. For more information
about these matters, see the file named COPYING.LIB.
PING xn--d1abbgf6aiiy.xn--p1ai (195.208.24.91) 56(84) bytes of data.
64 bytes from kremlin.ru (195.208.24.91): icmp_seq=1 ttl=58 time=14.2 ms
64 bytes from kremlin.ru (195.208.24.91): icmp_seq=2 ttl=58 time=18.6 ms
64 bytes from kremlin.ru (195.208.24.91): icmp_seq=3 ttl=58 time=14.1 ms
64 bytes from kremlin.ru (195.208.24.91): icmp_seq=4 ttl=58 time=14.4 ms
64 bytes from kremlin.ru (195.208.24.91): icmp_seq=5 ttl=58 time=14.2 ms
64 bytes from kremlin.ru (195.208.24.91): icmp_seq=6 ttl=58 time=14.3 ms
^C
--- xn--d1abbgf6aiiy.xn--p1ai ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 14.136/15.012/18.663/1.640 ms
теги: ping