まずはirc.ircnet.ne.jpをwhoisしてみる。not matchといわれる。
$ whois irc.ircnet.ne.jp [ 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'. ] No match!! With JPRS WHOIS, you can query the following domain name information sponsored by JPRS. - All of registered JP domain name - gTLD domain name of which sponsoring registrar is JPRS Detail: http://jprs.jp/info/jprs-whois/ (only in Japanese) For IP address information, please refer to the following WHOIS servers: - JPNIC WHOIS (whois.nic.ad.jp) - APNIC WHOIS (whois.apnic.net) - ARIN WHOIS (whois.arin.net) - RIPE WHOIS (whois.ripe.net) - LACNIC WHOIS (whois.lacnic.net) - AfriNIC WHOIS (whois.afrinic.net)
最初のラベルを削除して再度whoisすると情報が表示される。
$ whois ircnet.ne.jp [ 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] IRCNET.NE.JP d. [Network Service Name] IRCNET l. [Organization Type] Network Service m. [Administrative Contact] TT16013JP n. [Technical Contact] TT16013JP p. [Name Server] ns2.gyojya.jp p. [Name Server] ns0.gyojya.jp p. [Name Server] ns6.gyojya.jp s. [Signing Key] [State] Connected (2011/12/31) [Registered Date] 2009/12/03 [Connected Date] 2009/12/03 [Last Update] 2011/01/01 01:49:39 (JST)
担当者情報(JPNICハンドル)を検索する。日本語が化ける。
$ whois -h whois.jp TT16013JP [ 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'. ] Contact Information: [C4Ev<T>pJs] a. [JPNIC%O%s%I%k] TT16013JP b. [;aL>] C$L& CR c. [Last, First] Tatsumi, Tomo d. [EE;R%a%$%k] jpdomain@avis.ad.jp f. [AH?%L>] 3t<02q<REE;; g. [Organization] Densan Co., Ltd. k. [It=p] avisAm9g0FFb(Ld9g$;@h) l. [Division] avis Information m. [8*=q] n. [Title] o. [EEOCHV9f] 0120-55-1475 p. [FAXHV9f] y. [DLCN%"%I%l%9] [:G=*99?7] 2009/12/14 16:56:30 (JST) form@dom.jprs.jp
日本語が化けるのでnkfにパイプする。こんなもので大体whois検索サービスが提供する内容は網羅しているのではないだろうか。
$ whois -h whois.jp TT16013JP | nkf -w [ 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'. ] Contact Information: [担当者情報] a. [JPNICハンドル] TT16013JP b. [氏名] 辰巳 智 c. [Last, First] Tatsumi, Tomo d. [電子メイル] jpdomain@avis.ad.jp f. [組織名] 株式会社電算 g. [Organization] Densan Co., Ltd. k. [部署] avis総合案内(問合せ先) l. [Division] avis Information m. [肩書] n. [Title] o. [電話番号] 0120-55-1475 p. [FAX番号] y. [通知アドレス] [最終更新] 2009/12/14 16:56:30 (JST) form@dom.jprs.jp