mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 18:48:49 -04:00
Help: Unhealthy ip addresses do not match #370
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Wakanapi on GitHub (Feb 9, 2024).
The container is unhealthy without any errors in the logs. But docker inspect:
ERROR program is unhealthy: lookup IP addresses do not match: xx.xx.97.xx - xx.xx.96.xxRunning version latest built on 2024-02-04T14:45:13.409Z (commit
133956f)Logs:
Configuration file (remove your credentials!):
Host OS:
ubuntu server
@qdm12 commented on GitHub (Feb 10, 2024):
What does your domain resolve to using for example
nslookup? Maybe the ttl is still in effect so the dns cache returns the old ip address? 🤔@Wakanapi commented on GitHub (Feb 10, 2024):
Thank you very much for your prompt response. I'm just starting out in this world and I don't really know what you mean. Even so, I will try to give you the information as best I can to help me resolve the matter.
When I do an nslookup to my domain, I get this:
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: xxxxxx.com same domain
Address: xx.xx.96.x
Name: xxxxx.com same domain
Address: xx.xx.97.x
Name: xxx.com
Address: xxx:xx:xx0::x
Name: xxxxxx.com
Address: xxx:xx:xx1::x
I understand that it must be some configuration problem in my cloudflare website settings. How could I solve it?
@qdm12 commented on GitHub (Feb 10, 2024):
The error you previously mentioned
ERROR program is unhealthy: lookup IP addresses do not match: xx.xx.97.xx - xx.xx.96.xxthis is not the exact text you got, can you send the exact text (you can hide your IP with xx if you want, that's fine). It should be of the formERROR program is unhealthy: lookup IP addresses do not match: xx.xx.xx.xx,yy.yy.yy.yy instead of zz.zz.zz.zz for xyz.comYou have two A records configured for your domain, but it may be a bug within ddns-updater since it is programmed to create a record if no record is found from Cloudflare. Although the line
obtaining ipv4 address: try 1 of 3 failed: too many IP addresses: found 2 IPv4 addresses instead of 1is strange, it seems you have 2 ipv4 addresses assigned? Can you check at for example https;//ipinfo.io/ip ?Also what is your actual public IP address?
xx.xx.96.xorxx.xx.97.xor something else or both?@Wakanapi commented on GitHub (Feb 10, 2024):
The full unhealthy error logs is this:
The strangest thing of all is that neither of those two IPs are the real public IP. I understand that this may be because the domain is proxied by cloudflare.
I'm looking for solutions and I just found that if proxied is off in cloudflare dns settings for my domain, container go healthy, the ip shown in nslookup is my real ip (I understand that this happens this way because it is not being proxied) . But if I activate the proxied options for my domain again, nslookup again gives me two ips for my domain and the container returns to unhealthy.
@qdm12 commented on GitHub (Feb 11, 2024):
Oh, easy if it's proxied. I thought it wasn't because you didn't have the
"proxied": truesetting in your config, check the Cloudflare documentation in docs/Cloudflare.md for more information. That should solve it. Feel free to comment if it doesn't.@Wakanapi commented on GitHub (Feb 11, 2024):
It was just that. I add the line proxy: true, and now its status is healthy. Thanks for this great help! You can give the problem solved.