用户名
用户名需要使用你的登录邮箱地址
一开始我使用“区域 ID”作为用户名结果报错(code:6003)
运行日志如下
105857 : ddns version : 2.7.8-3
105857 : uci configuration:
ddns.cf.domain='***Domain***'
ddns.cf.enabled='1'
ddns.cf.interface='lan'
ddns.cf.ip_source='web'
ddns.cf.lookup_host='***Domain***'
ddns.cf.password='***PW***'
ddns.cf.service_name='cloudflare.com-v4'
ddns.cf.username='***User ID***'
ddns.cf=service
105859 : verbose mode : 0 - run normal, NO console output
105859 : check interval: 600 seconds
105859 : force interval: 259200 seconds
105859 : retry interval: 60 seconds
105900 : retry counter : 0 times
105900 : No old process
105900 : last update: 2022-01-26 10:46
105900 : Detect registered/public IP
105900 : #> /usr/bin/nslookup ***Domain*** >/var/run/ddns/cf.dat 2>/var/run/ddns/cf.err
105901 : Registered IP '0.0.0.0' detected
105901 info : Starting main loop at 2022-01-26 10:59
105901 : Detect local IP on 'web'
105901 : #> /usr/bin/wget-ssl -nv -t 1 -O /var/run/ddns/cf.dat -o /var/run/ddns/cf.err --no-proxy 'http://checkip.dyndns.com'
105902 : Local IP '***New IP***' detected on web at 'http://checkip.dyndns.com'
105902 : Update needed - L: '***New IP***' <> R: '0.0.0.0'
105902 : parsing script '/usr/lib/ddns/update_cloudflare_com_v4.sh'
105902 : #> /usr/bin/curl -RsS -o /var/run/ddns/cf.dat --stderr /var/run/ddns/cf.err --noproxy '*' --header 'X-Auth-Email: ***User ID***' --header 'X-Auth-Key: ***PW***' --header 'Content-Type: application/json' --request GET 'https://api.cloudflare.com/client/v4/zones?name=***Domain***'
105904 WARN : CloudFlare reported an error:
105904 : {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6102,"message":"Invalid format for X-Auth-Email header"}]}],"messages":[],"result":null}
105905 ERROR : IP update not accepted by DDNS Provider
105905 : Waiting 600 seconds (Check Interval)
110905 : Detect registered/public IP
110905 : #> /usr/bin/nslookup ***Domain*** >/var/run/ddns/cf.dat 2>/var/run/ddns/cf.err
110905 : Registered IP '0.0.0.0' detected
110905 WARN : Updating IP at DDNS provider failed - starting retry 1/0
110906 : Detect local IP on 'web'
110906 : #> /usr/bin/wget-ssl -nv -t 1 -O /var/run/ddns/cf.dat -o /var/run/ddns/cf.err --no-proxy 'http://checkip.dyndns.com'
110906 : Local IP '***New IP***' detected on web at 'http://checkip.dyndns.com'
110907 : Update needed - L: '***New IP***' <> R: '0.0.0.0'
110907 : parsing script '/usr/lib/ddns/update_cloudflare_com_v4.sh'
110907 : #> /usr/bin/curl -RsS -o /var/run/ddns/cf.dat --stderr /var/run/ddns/cf.err --noproxy '*' --header 'X-Auth-Email: ***User ID***' --header 'X-Auth-Key: ***PW***' --header 'Content-Type: application/json' --request GET 'https://api.cloudflare.com/client/v4/zones?name=***Domain***'
110908 WARN : CloudFlare reported an error:
110909 : {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6102,"message":"Invalid format for X-Auth-Email header"}]}],"messages":[],"result":null}
110909 ERROR : IP update not accepted by DDNS Provider
110909 : Waiting 600 seconds (Check Interval)
因为我使用的是旁路由来进行DDNS的解析所以使用 URL 来进行本地 ip 的获取。
参考链接:https://wordpress.org/support/topic/getting-error-invalid-request-headers-err-code-6003/
域名
【域名】这里需要注意的是二级域名要使用@来分隔
没使用@来分隔的运行日志
运行日志
111401 : ddns version : 2.7.8-3
111402 : uci configuration:
ddns.cf.domain='***Domain***'
ddns.cf.enabled='1'
ddns.cf.interface='lan'
ddns.cf.ip_source='web'
ddns.cf.lookup_host='***Domain***'
ddns.cf.password='***PW***'
ddns.cf.service_name='cloudflare.com-v4'
ddns.cf.username='***User Email***'
ddns.cf=service
111403 : verbose mode : 0 - run normal, NO console output
111403 : check interval: 600 seconds
111403 : force interval: 259200 seconds
111403 : retry interval: 60 seconds
111403 : retry counter : 0 times
111404 : No old process
111404 : last update: 2022-01-26 10:46
111404 : Detect registered/public IP
111404 : #> /usr/bin/nslookup ***Domain*** >/var/run/ddns/cf.dat 2>/var/run/ddns/cf.err
111405 : Registered IP '0.0.0.0' detected
111405 info : Starting main loop at 2022-01-26 11:14
111405 : Detect local IP on 'web'
111405 : #> /usr/bin/wget-ssl -nv -t 1 -O /var/run/ddns/cf.dat -o /var/run/ddns/cf.err --no-proxy 'http://checkip.dyndns.com'
111406 : Local IP '***New IP***' detected on web at 'http://checkip.dyndns.com'
111406 : Update needed - L: '***New IP***' <> R: '0.0.0.0'
111407 : parsing script '/usr/lib/ddns/update_cloudflare_com_v4.sh'
111407 : #> /usr/bin/curl -RsS -o /var/run/ddns/cf.dat --stderr /var/run/ddns/cf.err --noproxy '*' --header 'X-Auth-Email: ***User Email***' --header 'X-Auth-Key: ***PW***' --header 'Content-Type: application/json' --request GET 'https://api.cloudflare.com/client/v4/zones?name=***Domain***'
111408 WARN : Could not detect 'zone id' for domain.tld: '***Domain***'
111409 ERROR : No update send to DDNS Provider
111409 : Waiting 600 seconds (Check Interval)
我的配置
无论是通过 LuCI 页面还是通过终端。
//你需要填写你的域名
//二级域名需要把“.”改为“@”
评论(0)