19.03.2017 06:58, L A Walsh пишет:
I had my curiosity piqued when someone said they had problems retrieving a webpage from site 'президент.рф'.
I tried wget & curl but they both recoded it into punycode.
So tried ping... ping couldn't find the site at all:
ping -v "президент.рф" ping: unknown host президент.рф
So I tried 'dig':
dig "президент.рф"
; <<>> DiG 9.9.5-rpz2+rl.14038.05-P1 <<>> президент.рф ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61303 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
(NXDOMAIN = no such domain),
But if I type the address into my browser, it goes to the russian site (kremlin.ru).
I poked around a bit and found suse ping comes from the old 'iputils' package (superceded by iputils2, though iputils2 doesn't have ping). Looked a bit more and found it in the gnu inetutils package. Built it w/default config options and it resolved "right out of the box":
Well, it does not really help with dig unfortunately. Poor man's workaround is something like ping $(idn президент.рф) which will work for every domain name, traditional or IDNA. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org