Dette IP2WHOIS kommandolinjeværktøj giver en hurtig og effektiv metode til at få adgang til WHOIS domæneinformation for et specifikt domænenavn, der imødekommer behovene hos brugere, netværksadministratorer og udviklere. Du registrerer dig for en gratis API-nøgle for at begynde at bruge det.

Kom godt i gang GRATISGet Started for FREE

Hvordan man installerer IP2WHOIS CLI

IP2WHOIS understøtter forskellige installationsmetoder til forskellige operativsystemer. Nedenfor er installationsguiden ved hjælp af "Go Install"-metoden.

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

For alternativ installation, besøg venligst IP2WHOIS GitHub eller klik på knappen nedenfor.

 Windows  Debian  Git

Hvordan man konfigurerer IP2WHOIS API-nøglen

Du har brug for en API-nøgle for at komme i gang. Hvis du ikke har en, kan du registrere dig for en gratis IP2WHOIS API-nøgle og følge instruktionerne på dokumentationssiden nedenfor for at konfigurere API-nøglen.

ip2whois config <API KEY>

Eksempel på WHOIS-opslag for domæner

Spørg WHOIS for specifikt domæne

Du kan angive et domæne-WHOIS for manuelt at slå domæneinformationen op for det specifikke domæne. Resultatet vil blive returneret i JSON-format.

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

Pænt udskrive resultatet

For at forbedre synligheden kan du tilføje "-o pretty" indstillingen for at vise resultatet i et mere organiseret format i stedet for en enkelt linje.

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

Spørg WHOIS for specifik domæne og vis kun specifikke resultatfelter

I stedet for at vise det komplette sæt af informationer, har du mulighed for at tilpasse visningen og udskrive specifikke felter. For eksempel vil koden nedenfor vise domænenavnet, domæne-ID, status, oprettelsesdato og registrators navn.

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"

Konverter normalt domænenavn til Punycode

Du kan konvertere normalt domænenavn til Punycode. Eksemplet nedenfor bruger täst.de som domænenavn, du kan erstatte det med dit eget domæne.

ip2whois normal2puny täst.de

Output

xn--tst-qla.de

Konverter Punycode til normalt domænenavn

Du kan konvertere Punycode til et normalt domænenavn. Eksemplet nedenfor bruger xn--tst-qla.de som domænenavn, du kan erstatte det med dit eget domæne.

ip2whois puny2normal xn--tst-qla.de

Output

täst.de

De ovenstående eksempler viser flere anvendelsesscenarier. For at lære mere om de understøttede parametre, kan du kalde "ip2whois -h".

IP Geolocation CLI

Leder du efter IP Geolocation Kommando Linje Tool?
IP geolocation CLI giver dig mulighed for at hente IP geolokaliseringsinformation om en IP-adresse, såsom land, region, by, domæne, brugstype, proxy og mere.


Opdag domæneinformationer øjeblikkeligt med WHOIS Domain REST API

Prøv det gratis nu