unifi-ddns
unifi-ddns copied to clipboard
Error: Failed to find zone '%h/nic/update?system=dyndns'
I have a USG 4, it's getting a bit long in the teeth but it's what I have.
Have managed to deploy the worker to cloudflare, no problems there. However it seems ddclient is sending the wrong GET request, and results in an error with the zone.
DDClient version is 3.9.1 Have tried both dyndns & custom
I see the get request within Cloudflare.
Contents of ddclient.config
# Service : dyndns
server=unifi-cloudflare-ddns.xxxxxxx.workers.dev/update?ip=%i&hostname=%h, protocol=dyndns2 max-interval=28d login=xxxyyy.com password='<apikey>' hostname.xxxyyy.com
Debug Logs:
From CF:
"logs": [
{
"message": [
"CloudflareApiException",
"Error: Failed to find zone '%h/nic/update?system=dyndns'"
],
"level": "error",
"timestamp": 1716450843143
}
From CLI
DEBUG: get_ip: using if, eth2 reports 12.12.12.12
DEBUG:
DEBUG: nic_dyndns2_update -------------------
INFO: setting IP address to 12.12.12.12 for hostname.xxxyyy.com
UPDATE: updating hostname.xxxyyy.com
DEBUG: proxy =
DEBUG: protocol = https
DEBUG: server = unifi-cloudflare-ddns.xxxxxx.dev
DEBUG: url = update?ip=%i&hostname=%h/nic/update?system=dyndns&hostname=hostname.xxxyyy.com&myip=12.12.12.12
CONNECT: unifi-cloudflare-ddns.xxxxxxx.workers.dev
CONNECTED: using SSL
SENDING: GET /update?ip=%i&hostname=%h/nic/update?system=dyndns&hostname=hostname.xxxyyy.com&myip=12.12.12.12 HTTP/1.0
SENDING: Host: unifi-cloudflare-ddns.xxxxxxx.workers.dev
SENDING: Authorization: Basic am12345456778
SENDING: User-Agent: ddclient/3.9.1
SENDING: Connection: close
SENDING:
SENDING:
RECEIVE: HTTP/1.1 500 Internal Server Error
RECEIVE: Date: Thu, 23 May 2024 07:48:54 GMT
RECEIVE: Content-Type: text/plain;charset=UTF-8
RECEIVE: Content-Length: 185
RECEIVE: Connection: close
RECEIVE: Cache-Control: no-store
RECEIVE: Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=llaOyamuJxVpKfThHGOPD%2FZBEpPmKjhVXUnKqTqfSHQ5S2FV5OE%2F2zx7qm5kxohEemAB3XcQJsT%2FaRhyY%2BSDXXerPs8tsplhEO0aQ%2BgU1vKnabT3422clYjpPO2Ljsf"}],"group":"cf-nel","max_age":604800}
RECEIVE: NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
RECEIVE: Server: cloudflare
RECEIVE: CF-RAY: 888372431c3da968-SYD
RECEIVE: alt-svc: h3=":443"; ma=86400
RECEIVE:
RECEIVE: Error: Failed to find zone '%h/nic/update?system=dyndns'
RECEIVE: at Cloudflare.findZone (index.js:25:13)
RECEIVE: at async informAPI (index.js:126:29)
RECEIVE: at async handleRequest (index.js:109:5)
I'm guessing it's something within the USG that's appending the extra "/nic/update?system=dyndns&hostname=hostname.xxxyyy.com&myip=12.12.12.12"
Any thoughts on how to address this?