Cet outil de ligne de commande IP2WHOIS fournit un moyen rapide et efficace d'accéder aux informations WHOIS sur un nom de domaine spécifique, répondant aux besoins des utilisateurs, des administrateurs réseau et des développeurs. Vous vous inscrivez pour un clé API gratuite pour commencer à l'utiliser.

Commencez GRATUITEMENTGet Started for FREE

Comment installer IP2WHOIS CLI

IP2WHOIS prend en charge différentes méthodes d'installation pour différents systèmes d'exploitation. Voici le guide d'installation en utilisant la méthode "Go Install".

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

Pour une installation alternative, veuillez visiter le GitHub IP2WHOIS ou cliquer sur le bouton ci-dessous.

 Windows  Debian  Git

Comment configurer la clé API IP2WHOIS

Vous aurez besoin d'une clé API pour commencer. Si vous n'en avez pas, inscrivez-vous pour obtenir une clé API IP2WHOIS gratuite et suivez les instructions sur la page de documentation ci-dessous pour configurer la clé API.

ip2whois config <API KEY>

Exemple de recherche WHOIS de domaine

Interroger WHOIS pour un domaine spécifique

Vous pouvez spécifier un WHOIS de domaine pour rechercher manuellement les informations de ce domaine spécifique. Le résultat sera renvoyé au format 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"]}

Afficher le résultat de manière lisible

Pour améliorer la visibilité, vous pouvez ajouter l'option "-o pretty" pour afficher la sortie du résultat dans un format plus organisé au lieu d'une seule ligne.

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"
    ]
}

Interroger WHOIS pour un domaine spécifique et afficher uniquement des champs de résultat spécifiques

Au lieu d'afficher l'ensemble complet des informations, vous avez la possibilité de personnaliser l'affichage et de sortir des champs spécifiques. Par exemple, le code ci-dessous affichera le nom de domaine, l'ID de domaine, le statut, la date de création et le nom du registraire.

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"

Convertir un nom de domaine normal en Punycode

Vous pouvez convertir un nom de domaine normal en Punycode. L'exemple ci-dessous utilise täst.de comme nom de domaine, vous pouvez le remplacer par votre propre domaine.

ip2whois normal2puny täst.de

Output

xn--tst-qla.de

Convertir Punycode en nom de domaine normal

Vous pouvez convertir Punycode en nom de domaine normal. L'exemple ci-dessous utilise xn--tst-qla.de comme nom de domaine, vous pouvez le remplacer par votre propre domaine.

ip2whois puny2normal xn--tst-qla.de

Output

täst.de

Les exemples ci-dessus démontrent plusieurs scénarios d'utilisation. Pour en savoir plus sur les paramètres pris en charge, vous pouvez invoquer "ip2whois -h".

CLI de géolocalisation IP

Vous cherchez Outil de ligne de commande de géolocalisation IP ?
Le CLI de géolocalisation IP vous permet de récupérer des informations de géolocalisation IP d'une adresse IP, telles que le pays, la région, la ville, le domaine, le type d'utilisation, le proxy, et plus encore.


Découvrez instantanément les informations de domaine avec l'API REST WHOIS

Essayez-le GRATUITEMENT maintenant