LoginSignup
2
2

More than 5 years have passed since last update.

日本語ドメインでdigる

Last updated at Posted at 2015-06-19

homebrewでlibidnを入れます。

$ brew install libidn

idnコマンドがインストールされるので、パイプしてxargsで渡します。
nslookupの場合はxargsは不要です。

idn あいぼう.みんな | xargs dig
idn あいぼう.みんな | nslookup

ちなみにidnコマンドでPunycodeから日本語名に戻したいときは、idn -uでできます

idn -u xn--l8jeg9s.xn--q9jyb4c
#=> あいぼう.みんな
   ( ゚д゚)
 _(__つ/ ̄ ̄ ̄/_ 
   \/   /
     ̄ ̄ ̄
  
   ( ゚д゚ )
 _(__つ/ ̄ ̄ ̄/_ 
   \/   /
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2