花生壳和pubyun(原3322)在linux下快速解析
一、花生壳通过设置路由器自定义地址(免费版已经无法解析)
http://用户名:密码@/ddns.oray.com/ph/update?&hostname=域名/ curl -fsSu "username:password" "http://ddns.oray.com/ph/update?&hostname=域名" wget --user=username --password=password -O- "http://ddns.oray.com/ph/update?&hostname=域名"
二、pubyun
使用lynx(一般的Linux,BSD都自带) lynx -mime_header -auth=用户名:密码 "http://members.3322.net/dyndns/update?system=dyndns&hostname=域名" curl -u 用户名:密码 "http://members.3322.net/dyndns/update?system=dyndns&hostname=域名"
三、dynv6
https://dynv6.com/
#!/usr/bin/env bash V4_BASE="https://ipv4.dynv6.com/api/update?ipv4=auto" V6_BASE="https://ipv6.dynv6.com/api/update?ipv6=auto" #此处后期可以取脚本运行参数 ZONE="your domain" #此处后期可以取脚本运行参数 TOKEN="your token value" QUERY="zone=${ZONE}&token=${TOKEN}" V4_URL="${V4_BASE}&${QUERY}" V6_URL="${V6_BASE}&${QUERY}" curl -fsS "${V4_URL}" curl -fsS "${V6_URL}" #wget -O- "${V4_URL}" #wget -O- "${V6_URL}"