用于管理 CIS 部署的有用工具
一些公共域 Unix 系统管理工具可帮助您管理IBM Cloud® Internet Services部署。CIS) 的部署。
Sysadmin 工具
whois
(domain identification tool)dig
(DNS tool)cURL
(HTTP and HTTPS tool)netcat
(IP and port tool)traceroute
(network tool)
用于外部和远程测试的商业工具
- GTMetrix (http)
- Web 页面测试 (http)
- WhatsMyDNS(DNS 工具)
- G Suite Toolbox(DNS 和 HTTP)
用于查看日志和历史记录的工具
HTTP 归档文件(HAR 文件)
使用 whois
whois
is a UNIX system command line tool you can use to look up registrar information for a given domain name or IP address. 例如,域名的指定权威服务器或特定 IP 地址的所有者。
示例:
whois example.com
whois 8.8.8.8
使用 dig
dig
是一种 Unix 命令行工具,可用于执行 DNS 查询并检查特定域的 DNS 记录。 它类似于 nslookup
。
该命令的模式为 dig <record_type> <domainname> <options>
例如:
dig example.com
dig my.example.com
dig example.com +trace
dig NS example.com
dig example.com @ns.example.com
使用 cURL
cURL
is a Unix command line tool that lets you transmit data using the URL syntax. 此工具通常用于发出 HTTP 请求或比较服务器响应。
此命令的模式为:curl -option1 -option2 http://example.com/url
例如:
curl -svo /dev/null http://www.example.com
curl -svo /dev/null -A “USER_AGENT_STRING” http://www.example.com
curl -svo /dev/null -H “host: www.example.com” http://ORIGIN_IP
curl -svo /dev/null -H https://www.example.com --resolve www.example.com:443:ORIGIN_IP
使用 mtr
和 traceroute
mtr
and traceroute
are Unix command line tools that let you measure performance or latency along a specific network path to a specified host or destination server.
例如:
mtr -rwc 20 example.com -T -4
mtr -rwc 20 8.8.8.8 -T -6
traceroute example.com -T -4
traceroute 8.8.8.8 -T -6
选项 | 定义 |
---|---|
-c | 设置发送的 ping 数量 |
-T | 强制实施 TCP traceroute(通常为 ICMP) |
-4 | 强制使用 IPv4 |
-6 | 强制使用 IPv6 |
生成 HAR 文件
HAR 文件是网络浏览器 HTTP 请求的记录。 浏览器(如 Chrome 浏览器)有一个 "Developer Tools"部分,可以帮助你设置制作 HAR 文件。 有关如何创建 HAR 文件的更多信息,请参阅故障排除部分的 如何生成 HAR 文件?