mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 18:48:49 -04:00
Bug: existing ipv6 address not found from resolution #430
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 @capnsmc on GitHub (Aug 23, 2024).
Cloudflare IPv6 update complains about invalid IPv6 address and updates IPv6 at every interval, spamming the log and notifications. The IPv6 address is already set to the correct value, though (by ddns-updater itself, no less), and does not need any update.
c7dbbcb)", though the issue is not limited to that version. It started ten days ago, the day I got IPv6 connectivity.Logs:
These (and the notifications) get repeated every ten minutes
Configuration file:
N.b.: This is an excerpt. I have other entries in the configuration file, including the corresponding IPv4 entries for the very same Cloudflare domain. They only differ in the setting for
ip_version(set toipv4, of course), and they work just fine. I also have entries for other, "historical" domains at other providers that also work just fine (though they are not IPv6, but IPv4-only).I tried removing everything but the first entry (
*.<domain>) from the configuration. No change.I also tried removing
updates.json. No change.Docker Compose file:
Host OS:
Ubuntu 24.04
@qdm12 commented on GitHub (Nov 21, 2024):
This might be solved with
89564b763bPreviously I was using the
ipnetwork, thinking it would returnip4andip6addresses altogether, but this may be wrong (no way to test right now, my network is without ipv6 currently).I've changed that to query in parallel the ip4 and ip6 networks, and might do the trick, giving back the missing IPv6 you needed
invalid IP. Please try pulling the latest image and check if it works now?@capnsmc commented on GitHub (Nov 28, 2024):
I had to reboot my machine since, but quite some time before your change, and ddns-updater started working just fine. I assume it somehow got confused, because Linux was started before it got a global IPv6 address. So I can't reproduce the problem any longer, and I don't even know if the circumstances can be reproduced, sorry.
@qdm12 commented on GitHub (Nov 28, 2024):
No problem, maybe you can try with the image tag
:v2to check if it fails for IPv6? 🤔 If it doesn't fail either, let's close this then.@capnsmc commented on GitHub (Nov 29, 2024):
I just tried
:v2and it seems to work just fine 😃.Here the log for verification (redacted for my domains and such):
@chrste90 commented on GitHub (Dec 8, 2024):
Hi @qdm12,
i had the same problem, but the current solution doesnt seem to fix it completely for me. Instead of the error, i now get the following message:
It looks like the ipv6 address couldn't be extracted correctly (see the double whitespace)
My dns provider is strato.
@qdm12 commented on GitHub (Dec 24, 2024):
@chrste90 does it repeat this every period?
In the code it's that line that resolves your domain name with the network "ip6":
78f30614b1/internal/update/service.go (L69)It probably does fail with either "no such host" or there is actually no IPv6 address found. Not sure, maybe try with
nslookupto double check there is an AAAA record?