Công cụ dòng lệnh IP2WHOIS này cung cấp một phương tiện nhanh chóng và hiệu quả để truy cập thông tin WHOIS tên miền cho một tên miền cụ thể, phục vụ nhu cầu của người dùng, quản trị viên mạng và nhà phát triển. Bạn đăng ký một khóa API miễn phí để bắt đầu sử dụng nó.
Bắt Đầu MIỄN PHÍGet Started for FREEIP2WHOIS hỗ trợ nhiều phương pháp cài đặt cho các hệ điều hành khác nhau. Dưới đây là hướng dẫn cài đặt bằng phương pháp "Go Install".
go install github.com/ip2whois/ip2whois-cli/ip2whois@latest
Để cài đặt thay thế, vui lòng truy cập vào IP2WHOIS GitHub hoặc nhấn vào nút bên dưới.
Windows Debian GitBạn sẽ cần một API key để bắt đầu. Nếu bạn chưa có, hãy đăng ký để nhận một API key IP2WHOIS miễn phí và làm theo hướng dẫn trong trang tài liệu bên dưới để cấu hình API key.
ip2whois config <API KEY>
Bạn có thể chỉ định một miền WHOIS để tra cứu thông tin miền của miền cụ thể đó. Kết quả sẽ được trả về dưới định dạng 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"]}
Để cải thiện khả năng hiển thị, bạn có thể thêm tùy chọn "-o pretty" để hiển thị đầu ra kết quả theo định dạng có tổ chức hơn thay vì trên một dòng đơn.
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"
]
}
Thay vì hiển thị toàn bộ thông tin, bạn có tùy chọn để tùy chỉnh hiển thị và xuất các trường cụ thể. Ví dụ, đoạn mã dưới đây sẽ hiển thị tên miền, ID miền, trạng thái, ngày tạo và tên nhà đăng ký.
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"
Bạn có thể chuyển đổi tên miền thông thường thành Punycode. Ví dụ dưới đây sử dụng tên miền täst.de, bạn có thể thay thế nó bằng tên miền của riêng bạn.
ip2whois normal2puny täst.de
Output
xn--tst-qla.de
Bạn có thể chuyển đổi Punycode sang tên miền bình thường. Ví dụ dưới đây sử dụng xn--tst-qla.de làm tên miền, bạn có thể thay thế nó bằng tên miền của riêng bạn.
ip2whois puny2normal xn--tst-qla.de
Output
täst.de
Các ví dụ bên trên minh họa một số kịch bản sử dụng. Để tìm hiểu thêm về các tham số được hỗ trợ, bạn có thể gọi "ip2whois -h".
Bạn đang tìm kiếm Công cụ dòng lệnh định vị địa lý IP?
Công cụ dòng lệnh định vị địa lý IP cho phép bạn lấy thông tin định vị địa lý IP của một địa chỉ IP, chẳng hạn như quốc gia, khu vực, thành phố, tên miền, loại sử dụng, proxy và hơn thế nữa.