Hello,
Need some assistance with properly configuring dynamic dns on ubuntu 18.04.4 LTS.
Researching I came across the ddclient the current package installed is the later version which according to many threads supports cloudflare:
ii ddclient 3.8.3-1.1ubuntu1 all address updating utility for dynamic DNS services
output from
ddclient -daemon=0 -debug -verbose -noquiet
RECEIVE:
RECEIVE: error code: 1020
The documentation is broken and inconsistent as is the threads on the internet dated.
Any guidance is greatly appreciated.
Output ddclient.conf
Cloudflare (Cloudflare-com)
#How offten to check ip address
daemon=1800
#Using Cloudflare protocol
protocol=Cloudflare
#Tell ddclient to get real ip address
use=web, web=checkip-dyndns-org/
#Credentials for Cloudflare api
ssl=yes
server=www-Cloudflare-com
login=email
password=Cloudflare-global-API-Token
zone=domain.com
#Domain for update
domain-com,sub-domain-com
complete output:
ddclient -daemon=0 -debug -verbose -noquiet
DEBUG: proxy =
DEBUG: url = checkip-dyndns-org/
DEBUG: server = checkip-dyndns-org
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: 105
RECEIVE:
RECEIVE: Current IP CheckCurrent IP Address: #.#.#.#
DEBUG: get_ip: using web, checkip-dyndns-org/ reports #.#.#.#
INFO: forcing updating domain-com because no cached entry exists.
DEBUG:
DEBUG: nic_cloudflare_update -------------------
INFO: setting IP address to #.#.#.# for domain-com
UPDATE: updating domain-com
DEBUG: proxy =
DEBUG: url = https://www-cloudflare-com/api_json.html?a=rec_load_all&z=domain-com&email=cloudflare@account-com&tkn=cloudflare-global-API-Token
DEBUG: server = www-Cloudflare-com
CONNECT: www-Cloudflare-com
CONNECTED: using SSL
SENDING: GET /api_json.html?a=rec_load_all&z=domain-com&email=Cloudflare@account-com&tkn=Cloudflare-global-API-Token HTTP/1.0
SENDING: Host: www-Cloudflare-com
SENDING: User-Agent: ddclient/3.8.3
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 403 Forbidden
RECEIVE: Date: Thu, 02 Apr 2020 09:00:12 GMT
RECEIVE: Content-Type: text/plain; charset=UTF-8
RECEIVE: Connection: close
RECEIVE: Set-Cookie: __cfduid=dba58430a2fd49466a7c934328540d2a91585818012; expires=Sat, 02-May-20 09:00:12 GMT; path=/; domain=.www-Cloudflare-com; HttpOnly; SameSite=Lax; Secure
RECEIVE: Cache-Control: max-age=15
RECEIVE: Expires: Thu, 02 Apr 2020 09:00:27 GMT
RECEIVE: Expect-CT: max-age=604800, report-uri=“https://report-uri-cloudflare-com/cdn-cgi/beacon/expect-ct ”
RECEIVE: Set-Cookie: __cf_bm=code/AI=; path=/; expires=Thu, 02-Apr-20 09:30:12 GMT; domain=.www-Cloudflare-com; HttpOnly; Secure; SameSite=None
RECEIVE: Server: Cloudflare
RECEIVE: CF-RAY: 57d95bafdaa4ccc6-EWR
RECEIVE: alt-svc: h3-27=“:443”; ma=86400, h3-25=“:443”; ma=86400, h3-24=“:443”; ma=86400, h3-23=“:443”; ma=86400
RECEIVE:
RECEIVE: error code: 1020
Please try the solution I just posted in Ddclient errors - #5 by frosticless
I was having this error too but that solved it
system
Closed
May 17, 2020, 5:00pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.