whois

提供: セキュリティ
移動: 案内検索
スポンサーリンク

whois とは、ドメインの登録情報を検索するサービスです。日本では、JPNICやJPRSのレジストラが用意したwhoisサーバーから情報を得ます。whoisは、whoisサービス、または、whoisプロトコル、whoisコマンドです。

読み方

whois
ふーいず

概要

whois とは、ドメインの登録情報を検索するサービスです。日本では、JPNICやJPRSのレジストラが用意したwhoisサーバーから情報を得ます。whoisは、whoisサービス、または、whoisプロトコル、whoisコマンドです。

ポート番号

whois           43/tcp          nicname

インストール

Ubuntu/Debianにインストールする場合

apt-get コマンドでインストールする場合です。

sudo apt-get install whois

使い方

コマンドラインオプション

Usage: whois [OPTION]... OBJECT...
 
-l                     one level less specific lookup [RPSL only]
-L                     find all Less specific matches
-m                     find first level more specific matches
-M                     find all More specific matches
-c                     find the smallest match containing a mnt-irt attribute
-x                     exact match [RPSL only]
-d                     return DNS reverse delegation objects too [RPSL only]
-i ATTR[,ATTR]...      do an inverse lookup for specified ATTRibutes
-T TYPE[,TYPE]...      only look for objects of TYPE
-K                     only primary keys are returned [RPSL only]
-r                     turn off recursive lookups for contact information
-R                     force to show local copy of the domain object even
                       if it contains referral
-a                     search all databases
-s SOURCE[,SOURCE]...  search the database from SOURCE
-g SOURCE:FIRST-LAST   find updates from SOURCE from serial FIRST to LAST
-t TYPE                request template for object of TYPE
-v TYPE                request verbose template for object of TYPE
-q [version|sources|types]  query specified server info [RPSL only]
-F                     fast raw output (implies -r)
-h HOST                connect to server HOST
-p PORT                connect to PORT
-H                     hide legal disclaimers
      --verbose        explain what is being done
      --help           display this help and exit
      --version        output version information and exit

文字化けしてしまう場合

文字化けする場合は、iconv/nkfなどのコマンドで変換をかければ良いのですが、中途半端に文字化けしてしまって、解決できない場合には、/e オプションをつけることで、英語表記で表示するのがいいでしょう。

ubuntu@c1:~$ whois -h whois.jprs.jp yahoo.co.jp /e
[ JPRS database provides information on network administration. Its use is    ]
[ restricted to network administration purposes. For further information,     ]
[ use 'whois -h whois.jprs.jp help'. To suppress Japanese output, add'/e'     ]
[ at the end of command, e.g. 'whois -h whois.jprs.jp xxx/e'.                 ]
 
Domain Information:
a. [Domain Name]                YAHOO.CO.JP
g. [Organization]               Yahoo Japan Corporation
l. [Organization Type]          Corporation
m. [Administrative Contact]     SI7100JP
n. [Technical Contact]          NM5078JP
p. [Name Server]                ns01.yahoo.co.jp
p. [Name Server]                ns02.yahoo.co.jp
p. [Name Server]                ns11.yahoo.co.jp
p. [Name Server]                ns12.yahoo.co.jp
s. [Signing Key]
[State]                         Connected (2014/11/30)
[Registered Date]               2000/11/17
[Connected Date]                2000/11/17
[Last Update]                   2013/12/01 01:05:52 (JST)

関連項目




スポンサーリンク