inadyn[25670] <Error>: Zone 'my-domain.com' not found - Cloudflare
theRVA-ma opened this issue · 3 comments
Having an issue where I am getting inadyn[25670] : Zone 'my-domain.com' not found when attempting to use inadyn to update an entry in Cloudflare. Is @SimonPilkington still around?
macOS 14.5 (Macbook Air M2)
inadyn 2.12.0
Installed via Homebrew
Here is my config file:
# In-A-Dyn v2.0 configuration file format
period = 300
user-agent = Mozilla/5.0
# Create a unique custom API token with the following permissions:
# -> Zone.Zone - Read, Zone.DNS - Edit.
provider default@cloudflare.com {
username = my-domain.com
password = MY_API_KEY
hostname = sub.my-domain.com
ttl = 1
proxied = false
checkip-server = ifconfig.me
checkip-path = /ip
checkip-ssl = false
}
And here is the output that I get:
username@macbookair sbin % inadyn -l debug --foreground --force
Aug 6 23:29:40 inadyn[25676] <Notice>: In-a-dyn version 2.12.0 -- Dynamic DNS update client.
Aug 6 23:29:40 inadyn[25676] <Info>: Resolving hostname sub.my-domain.com => IP# x.x.x.x
Aug 6 23:29:40 inadyn[25676] <Debug>: Get address for default@cloudflare.com
Aug 6 23:29:40 inadyn[25676] <Info>: Checking for IP# change, connecting to ifconfig.me([34.160.111.145]:80)
Aug 6 23:29:40 inadyn[25676] <Debug>: Querying DDNS checkip server for my public IP#: GET /ip HTTP/1.0
Host: ifconfig.me
User-Agent: Mozilla/5.0
Aug 6 23:29:40 inadyn[25676] <Debug>: Server response: HTTP/1.0 200 OK
date: Wed, 07 Aug 2024 03:29:39 GMT
content-type: text/plain
Content-Length: 13
access-control-allow-origin: *
via: 1.1 google
x.x.x.x
Aug 6 23:29:40 inadyn[25676] <Debug>: Checked my IP, return code 0: OK
Aug 6 23:29:40 inadyn[25676] <Debug>: IP server response:
Aug 6 23:29:40 inadyn[25676] <Debug>: HTTP/1.0 200 OK
date: Wed, 07 Aug 2024 03:29:39 GMT
content-type: text/plain
Content-Length: 13
access-control-allow-origin: *
via: 1.1 google
x.x.x.x
Aug 6 23:29:40 inadyn[25676] <Debug>: Checking IPv4 address x.x.x.x ...
Aug 6 23:29:40 inadyn[25676] <Debug>: IPv4 address x.x.x.x is valid.
Aug 6 23:29:40 inadyn[25676] <Info>: No IP# change detected for default@cloudflare.com, still at x.x.x.x
Aug 6 23:29:40 inadyn[25676] <Notice>: Update forced for alias sub.my-domain.com, new IP# x.x.x.x
Aug 6 23:29:40 inadyn[25676] <Debug>: Zone: my-domain.com
Aug 6 23:29:40 inadyn[25676] <Error>: Zone 'my-domain.com' not found.
Works for me using a similar config to yours. By that log HTTP init fails before the first request to get the zone id is even sent to Cloudflare. I've never seen a Mac in my life so I have no idea what's going on basically, sorry.
Works for me using a similar config to yours. By that log HTTP init fails before the first request to get the zone id is even sent to Cloudflare. I've never seen a Mac in my life so I have no idea what's going on basically, sorry.
I might be a bit dense, but where do you see the HTTP init failure?
Works for me using a similar config to yours. By that log HTTP init fails before the first request to get the zone id is even sent to Cloudflare. I've never seen a Mac in my life so I have no idea what's going on basically, sorry.
I might be a bit dense, but where do you see the HTTP init failure?
Nowhere. I'm guessing from the code and your log.
json_extract()
at https://github.com/troglobit/inadyn/blob/master/plugins/cloudflare.c#L331 returns an error before sending the request because it doesn't log sending it but other parts of Inadyn don't log anything based on that return code so we don't know what the error is.