Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inadyn[25670] <Error>: Zone 'my-domain.com' not found - Cloudflare #490

Open
theRVA-ma opened this issue Aug 7, 2024 · 3 comments
Open

Comments

@theRVA-ma
Copy link

theRVA-ma commented Aug 7, 2024

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 [email protected] {
    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 [email protected]
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 [email protected], 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.
@SimonPilkington
Copy link
Contributor

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.

@theRVA-ma
Copy link
Author

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?

@SimonPilkington
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants