Esta herramienta de línea de comandos de IP2WHOIS proporciona un medio rápido y eficiente para acceder a la información WHOIS de dominios para un nombre de dominio específico, atendiendo a las necesidades de usuarios, administradores de red y desarrolladores. Te registras para obtener una clave API gratuita para comenzar a usarla.

Comienza GRATISGet Started for FREE

كيفية تثبيت واجهة سطر أوامر IP2WHOIS

تدعم IP2WHOIS طرق تثبيت مختلفة لأنظمة التشغيل المختلفة. فيما يلي دليل التثبيت باستخدام طريقة "Go Install".

go install github.com/ip2whois/ip2whois-cli/ip2whois@latest

للحصول على طرق تثبيت بديلة، يرجى زيارة IP2WHOIS GitHub أو النقر على الزر أدناه.

 Windows  Debian  Git

كيفية تكوين مفتاح API الخاص بـ IP2WHOIS

ستحتاج إلى مفتاح API للبدء. إذا لم يكن لديك واحد، قم بالتسجيل للحصول على مفتاح API مجاني لـ IP2WHOIS واتبع التعليمات في صفحة الوثائق أدناه لتكوين مفتاح API.

ip2whois config <API KEY>

مثال على بحث WHOIS للنطاق

استعلام عن WHOIS لنطاق معين

يمكنك تحديد 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"]}

طباعة النتائج بشكل منظم

لتحسين الرؤية، يمكنك إضافة الخيار "-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"
    ]
}

查询WHOIS以获取特定域名并仅显示特定结果字段

除了显示完整信息集外,您可以自定义显示并输出特定字段。例如,下面的代码将显示域名、域名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

您可以将普通域名转换为Punycode。下面的示例使用täst.de作为域名,您可以将其替换为您自己的域名。

ip2whois normal2puny täst.de

Output

xn--tst-qla.de

将Punycode转换为普通域名

Puedes convertir Punycode a un nombre de dominio normal. El ejemplo a continuación utiliza xn--tst-qla.de como nombre de dominio, puedes reemplazarlo con tu propio dominio.

ip2whois puny2normal xn--tst-qla.de

Output

täst.de

Los ejemplos anteriores demuestran varios escenarios de uso. Para aprender más sobre los parámetros soportados, puedes invocar "ip2whois -h".

CLI de Geolocalización IP

¿Buscas Herramienta de Línea de Comandos de Geolocalización IP?
La CLI de geolocalización IP te permite recuperar información de geolocalización IP de una dirección IP, como país, región, ciudad, dominio, tipo de uso, proxy y más.


Descubra la información del dominio al instante con la API REST de WHOIS Domain

Pruébalo GRATIS ahora