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
最新推荐文章于 2025-02-04 09:59:31 发布
1.shell> curl ifconfig.me
2.shell> host myip.opendns.com resolver1.opendns.com
3.shell> dig +short myip.opendns.com @resolver1.opendns.com