whois

$ whois --help
whois: unknown option -- -
Usage: whois [OPTION]... OBJECT...

-h HOST, --host HOST   connect to server HOST
-p PORT, --port 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

These flags are supported by whois.ripe.net and some RIPE-like servers:
-l                     find the one level less specific match
-L                     find all levels less specific matches
-m                     find all one level more specific matches
-M                     find all levels of more specific matches
-c                     find the smallest match containing a mnt-irt attribute
-x                     exact match
-b                     return brief IP address ranges with abuse contact
-B                     turn off object filtering (show email addresses)
-G                     turn off grouping of associated objects
-d                     return DNS reverse delegation objects too
-i ATTR[,ATTR]...      do an inverse look-up for specified ATTRibutes
-T TYPE[,TYPE]...      only look for objects of TYPE
-K                     only primary keys are returned
-r                     turn off recursive look-ups for contact information
-R                     force to show local copy of the domain object even
                       if it contains referral
-a                     also search all the mirrored databases
-s SOURCE[,SOURCE]...  search the database mirrored 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

文字化けの対策

whois.jprs.jp

.jpのサーバであるwhois.jprs.jpからのレスポンスは、文字エンコーディングの違いにより文字化けします。

2015/01/18からUTF-8へ変更されたため、文字エンコーディングの違いはなくなりました。JPRS WHOIS表示変更について(更新) | JPドメイン名についてのお知らせ | JPRS

$ whois -h whois.jprs.jp hatena.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 xx/e'.                 ]

Domain Information: [%I%a%$%s>pJs]
a. [%I%a%$%sL>]                 HATENA.NE.JP
b. [$M$C$H$o!<$/$5!<$S$9$a$$]   $O$F$J
c. [%M%C%H%o!<%/%5!<%S%9L>]     $O$F$J
d. [Network Service Name]       hatena
k. [AH?%<oJL]                   %M%C%H%o!<%/%5!<%S%9
l. [Organization Type]          Network Service
m. [EPO?C4Ev<T]                 JK960JP
n. [5;=QO"MmC4Ev<T]             JK961JP
n. [5;=QO"MmC4Ev<T]             DT033JP
p. [%M!<%`%5!<%P]               ns0.future-s.com
p. [%M!<%`%5!<%P]               ns1.future-s.com
s. [=pL>80]
[>uBV]                          Connected (2014/02/28)
[EPO?G/7nF|]                    2001/02/22
[@\B3G/7nF|]                    2001/05/21
[:G=*99?7]                      2013/03/01 01:23:12 (JST)

文字化けは、コマンドの最後に「/e」を追加し、英語で結果を得ることで解決できます。

$ whois -h whois.jprs.jp hatena.ne.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 xx/e'.                 ]

Domain Information:
a. [Domain Name]                HATENA.NE.JP
d. [Network Service Name]       hatena
l. [Organization Type]          Network Service
m. [Administrative Contact]     JK960JP
n. [Technical Contact]          JK961JP
n. [Technical Contact]          DT033JP
p. [Name Server]                ns0.future-s.com
p. [Name Server]                ns1.future-s.com
s. [Signing Key]
[State]                         Connected (2014/02/28)
[Registered Date]               2001/02/22
[Connected Date]                2001/05/21
[Last Update]                   2013/03/01 01:23:12 (JST)
4.英語表示での検索方法 - JPRS WHOISの使い方 | JPRS WHOISご利用ガイド | JPドメイン名の検索 | JPドメイン名について | JPRS

または文字エンコーディングの「ISO-2022-JP」から、他の文字エンコーディングに変換してから出力します。