このIP2WHOISコマンドラインツールは、特定のドメイン名に対するWHOISドメイン情報にアクセスするための迅速かつ効率的な手段を提供し、ユーザー、ネットワーク管理者および開発者のニーズに応えます。利用を開始するには、無料APIキーに登録してください。
無料で始めるGet Started for FREEIP2WHOISは異なるオペレーティングシステムに対してさまざまなインストール方法をサポートしています。以下は「Go Install」方法を使用したインストールガイドです。
go install github.com/ip2whois/ip2whois-cli/ip2whois@latest
代替インストールについては、IP2WHOIS GitHubを訪れるか、下のボタンをクリックしてください。
Windows Debian Git始めるにはAPIキーが必要です。まだ持っていない場合は、無料のIP2WHOIS APIキーに登録し、下のドキュメンテーションページの指示に従ってAPIキーを設定してください。
ip2whois config <API KEY>
特定のドメインの情報を手動で検索するために、ドメインのWHOISを指定できます。結果はJSON形式で返されます。
ip2whois locaproxy.com
Output
{"domain":"locaproxy.com","domain_id":"1710914405_DOMAIN_COM-VRSN","status":"clientTransferProhibited https://icann.org/epp#clientTransferProhibited","create_date":"2012-04-03T02:34:32Z","update_date":"2021-12-03T02:54:57Z","expire_date":"2024-04-03T02:34:32Z","domain_age":4301,"whois_server":"whois.godaddy.com","registrar":{"iana_id":"146","name":"GoDaddy.com, LLC","url":"https://www.godaddy.com"},"registrant":{"name":"Registration Private","organization":"Domains By Proxy, LLC","street_address":"DomainsByProxy.com","city":"Tempe","region":"Arizona","zip_code":"85284","country":"US","phone":"+1.4806242599","fax":"","email":"Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"},"admin":{"name":"Registration Private","organization":"Domains By Proxy, LLC","street_address":"DomainsByProxy.com","city":"Tempe","region":"Arizona","zip_code":"85284","country":"US","phone":"+1.4806242599","fax":"","email":"Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"},"tech":{"name":"Registration Private","organization":"Domains By Proxy, LLC","street_address":"DomainsByProxy.com","city":"Tempe","region":"Arizona","zip_code":"85284","country":"US","phone":"+1.4806242599","fax":"","email":"Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"},"billing":{"name":"","organization":"","street_address":"","city":"","region":"","zip_code":"","country":"","phone":"","fax":"","email":""},"nameservers":["vera.ns.cloudflare.com","walt.ns.cloudflare.com"]}
可視性を向上させるために、結果出力を1行ではなく、より整理された形式で表示するために「-o pretty」オプションを追加できます。
ip2whois -o pretty locaproxy.com
Output
{
"domain": "locaproxy.com",
"domain_id": "1710914405_DOMAIN_COM-VRSN",
"status": "clientTransferProhibited https://icann.org/epp#clientTransferProhibited",
"create_date": "2012-04-03T02:34:32Z",
"update_date": "2021-12-03T02:54:57Z",
"expire_date": "2024-04-03T02:34:32Z",
"domain_age": 4301,
"whois_server": "whois.godaddy.com",
"registrar": {
"iana_id": "146",
"name": "GoDaddy.com, LLC",
"url": "https://www.godaddy.com"
},
"registrant": {
"name": "Registration Private",
"organization": "Domains By Proxy, LLC",
"street_address": "DomainsByProxy.com",
"city": "Tempe",
"region": "Arizona",
"zip_code": "85284",
"country": "US",
"phone": "+1.4806242599",
"fax": "",
"email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"
},
"admin": {
"name": "Registration Private",
"organization": "Domains By Proxy, LLC",
"street_address": "DomainsByProxy.com",
"city": "Tempe",
"region": "Arizona",
"zip_code": "85284",
"country": "US",
"phone": "+1.4806242599",
"fax": "",
"email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"
},
"tech": {
"name": "Registration Private",
"organization": "Domains By Proxy, LLC",
"street_address": "DomainsByProxy.com",
"city": "Tempe",
"region": "Arizona",
"zip_code": "85284",
"country": "US",
"phone": "+1.4806242599",
"fax": "",
"email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM"
},
"billing": {
"name": "",
"organization": "",
"street_address": "",
"city": "",
"region": "",
"zip_code": "",
"country": "",
"phone": "",
"fax": "",
"email": ""
},
"nameservers": [
"vera.ns.cloudflare.com",
"walt.ns.cloudflare.com"
]
}
情報の完全なセットを表示する代わりに、表示をカスタマイズして特定のフィールドを出力するオプションがあります。例えば、以下のコードは、ドメイン名、ドメインID、ステータス、作成日、およびレジストラ名を表示します。
ip2whois -f domain,domain_id,status,create_date,registrar.name locaproxy.com
Output
domain,domain_id,status,create_date,registrar.name
"locaproxy.com","1710914405_DOMAIN_COM-VRSN","clientTransferProhibited https://icann.org/epp#clientTransferProhibited","2012-04-03T02:34:32Z","GoDaddy.com, LLC"
通常のドメイン名をPunycodeに変換できます。以下の例では、täst.deをドメイン名として使用していますが、自分のドメインに置き換えることができます。
ip2whois normal2puny täst.de
Output
xn--tst-qla.de
Punycodeを通常のドメイン名に変換できます。以下の例ではxn--tst-qla.deをドメイン名として使用していますが、あなた自身のドメインに置き換えることができます。
ip2whois puny2normal xn--tst-qla.de
Output
täst.de
上記の例は、いくつかの使用シナリオを示しています。サポートされているパラメータについて詳しく知りたい場合は、"ip2whois -h"を呼び出すことができます。
IPジオロケーションコマンドラインツールを探していますか?
IPジオロケーションCLIを使用すると、IPアドレスの国、地域、市、ドメイン、使用タイプ、プロキシなどのIPジオロケーション情報を取得できます。