ddclient-3.8.3-1.1ubuntu1 on Ubuntu 18.04 LTS
ddclient.conf
protocol=cloudflare
use=web
server=www.cloudflare.com
login=abc
password='zzz'
zone=xyz.zone
xyz
ddclient report:
CONNECT: checkip.dyndns.org
CONNECTED: using HTTP
SENDING: GET / HTTP/1.0
SENDING: Host: checkip.dyndns.org
SENDING: User-Agent: ddclient/3.8.3
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Content-Type: text/html
RECEIVE: Server: DynDNS-CheckIP/1.0.1
RECEIVE: Connection: close
RECEIVE: Cache-Control: no-cache
RECEIVE: Pragma: no-cache
RECEIVE: Content-Length: 106
RECEIVE:
RECEIVE: <title>Current IP Check</title>Current IP Address: nnn.nnn.nnn.nnn
INFO: setting IP address to nnn.nnn.nnn.nnn for xyz
UPDATE: updating xyz
CONNECT: www.cloudflare.com
CONNECTED: using SSL
SENDING: GET /api_json.html?a=rec_load_all&z=xyz&email=abc&tkn=zzz
1e36aa6 HTTP/1.0
SENDING: Host: www.cloudflare.com
SENDING: User-Agent: ddclient/3.8.3
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 410 Gone
RECEIVE: Date: Sun, 30 Jun 2019 06:47:28 GMT
RECEIVE: Content-Type: text/html
RECEIVE: Content-Length: 88
RECEIVE: Connection: close
RECEIVE: Set-Cookie: cfduid=xxx; expires=Mon, 29-Jun-20 06:47:27 GMT; path=/; domain=.www
.cloudflare.com; HttpOnly
RECEIVE: Cache-Control: public, max-age=31536000
RECEIVE: CF-Ray: 4eee305e6d7fdad4-TPE
RECEIVE: Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
RECEIVE: Server: cloudflare
RECEIVE:
RECEIVE: This API has been deprecated in favor of API v4, available at https://api.cloudflare.com
shell script of proof by Cloudlfare API v4
(sorry pound sign is changed to %23)
`%23!/bin/bash
CF_AUTH_KEY="xxx"
CF_AUTH_MAIL="mmm"
curlRetrieve(){
curl -s -X GET "https://api.cloudflare.com/client/v4/zones/$1/dns_records/$2" \ -H "X-Auth-Email: "$CF_AUTH_MAIL \ -H "X-Auth-Key: "$CF_AUTH_KEY \ -H "Content-Type: application/json" | \ python -m json.tool
}
curlUpdate(){
echo "Changing IP addr... '$3'"
}
if [ "$IP" != "$OLD_IP" ]; then
%23 zone_id of cloudflare dns domain
ZONE_ID="zzz"
DDNZ_DOM="dom"
fi
`
Last edit: FyLy 2019-06-30