小泽 (@rttw) 在 分享一下自己的搭建的IP获取/UA获取/whois/IP查询/DNS查询工具站 中发帖
其实顾名思义本来是给一些ddns程序获取本地IP使用的,后面多扩展了一些小玩意,在境内,有做备案,只要各位大佬们手下留情不攻击还是能稳定的,用法:
获取IP(curl或者直接访问都可以):
# 获取IPv4
curl https://ipv4.ddnsip.cn
curl -4 https://ddnsip.cn
# 获取IP(取决于网络优先级,有v6返回v6,没有返回v4)
curl https://ddnsip.cn
# 获取IPv6
curl https://ipv6.ddnsip.cn
curl -6 https://ddnsip.cn
# 获取json返回(上面的本来都是直接返回ip文本的,后面应某个佬的需求加了json)
curl https://ipv4.ddnsip.cn/json
curl https://ipv6.ddnsip.cn/json
curl https:...