Closed Wakanapi closed 4 months ago
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? 🤔
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? 🤔
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?
The error you previously mentioned ERROR program is unhealthy: lookup IP addresses do not match: xx.xx.97.xx - xx.xx.96.xx
this 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 form ERROR 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.com
You 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 1
is 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.x
or xx.xx.97.x
or something else or both?
The full unhealthy error logs is this:
2024-02-10T01:22:32+01:00 ERROR program is unhealthy: lookup IP addresses do not match: xxx.xxx.97.x,xxx.xxx.96.x,xxxx:xxxx:xxxxx::x,xxxx:xxxxx:xxxxx::5 instead of real public ip for xxxxxxx.com
2024-02-10T01:22:32+01:00 INFO Shutdown successful
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.
Oh, easy if it's proxied. I thought it wasn't because you didn't have the "proxied": true
setting 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.
Oh, easy if it's proxied. I thought it wasn't because you didn't have the
"proxied": true
setting 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.
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.
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.xx
Running version latest built on 2024-02-04T14:45:13.409Z (commit 133956f)
Logs:
Configuration file (remove your credentials!):
Host OS: ubuntu server