1.shell> curl ifconfig.me
2.shell> host myip.opendns.com resolver1.opendns.com
3.shell> dig +short myip.opendns.com @resolver1.opendns.com
Linux获取公网ip
最新推荐文章于 2024-04-14 18:14:03 发布
1.shell> curl ifconfig.me
2.shell> host myip.opendns.com resolver1.opendns.com
3.shell> dig +short myip.opendns.com @resolver1.opendns.com