wuruxu

openwrt 22.03 配置 dnspod ddns 服务

  •  
  •   wuruxu · Jan 5, 2023 · 1872 views
    This topic created in 1248 days ago, the information mentioned may be changed or developed.

    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"
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1254 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 17:44 · PVG 01:44 · LAX 10:44 · JFK 13:44
    ♥ Do have faith in what you're doing.