1. 查询本机外网 IP
# curl api.dhcp.cn/?json
{
"IP": "134.175.159.160",
"Address": {
"Country": "中国",
"Province": "广东省",
"City": "广州市"
},
"ISP": "电信"
}
# curl api.dhcp.cn/?yaml
IP: 134.175.159.160
Address:
Country: 中国
Province: 广东省
City: 广州市
ISP: 电信
# curl api.dhcp.cn/?ip
134.175.159.160
# curl api.dhcp.cn/?csv
134.175.159.160,中国,广东省,广州市,电信
# dhcp.cn/?ip=134.175.159.160
IP: 134.175.159.160
Address:
Country: 中国
Province: 广东省
City: 广州市
ISP: 电信