ipv6 ddns 模式下的
config ddns "global"
option ddns_dateformat "%F %R"
# option ddns_rundir "/var/run/ddns"
# option ddns_logdir "/var/log/ddns"
option ddns_loglines "250"
option upd_privateip "0"
config service "dnspod"
option service_name "dnspod.cn"
option lookup_host "xyz.wuruxu.cn"
option domain "xyz.wuruxu.cn"
option username "帐号中心 /API 密钥 /DNSPod Token/ID"
option password "帐号中心 /API 密钥 /DNSPod Token/Token"
option use_ipv6 "1"
option enabled "1"
option use_https "1"
option ip_source "script"
option ip_script '/sbin/ip -6 addr show dev pppoe-wan scope global | sed -e"s/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d"'
#option interface "wan6"
#option ip_source "network"
#option ip_network "wan"
#option ip_interface "pppoe-wan"
ipv4 ddns 模式
config service "dnspod"
option service_name "dnspod.cn"
option lookup_host "xyz.wuruxu.cn"
option domain "xyz.wuruxu.cn"
option username "帐号中心 /API 密钥 /DNSPod Token/ID"
option password "帐号中心 /API 密钥 /DNSPod Token/Token"
option use_ipv6 "0"
option enabled "1"
option check_interval "10"
option use_https "1"
option interface "wan"
option ip_source "network"
option ip_network "wan"