mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-05-14 20:11:55 -04:00
IP method ddnss6 is only for IPv6 addresses #25
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 @tools400 on GitHub (Apr 11, 2020).
Hi, am I correct, that ddns-update cannot update IPV6 addresses for Cloudflare?
The following piece of code implies that, along with the error that I mentioned in the subject area of this issue:
cloudflarePutBody{ Type: "A", Name: host, Content: ip.String(), Proxied: proxied, TTL: ttl, },Regards,
Thomas.
@qdm12 commented on GitHub (Apr 11, 2020):
Yes for now it can only update AAAA records for some other providers (DDNSS.de, Infomaniak, etc.). I need to add support for Ipv6 so let's keep this issue opened, I'll close it once IPv6 records are supported.
@tools400 commented on GitHub (Apr 11, 2020):
That was truly a fast response. Thanks.
I am looking forward to your IPV6 support.
@qdm12 commented on GitHub (May 30, 2020):
Hello, I added support for ipv6 and AAAA now for Cloudflare, can you please try it? (I don't have ipv6 nor cloudflare ha!)
The image is
qmcgaw/ddns-updater:cloudflare-ipv6, PR is here and newer documentation is here (essentially you can removeidentifierfrom your settings, and you can specify"ip_version": "ipv6"- if you don't it will update ipv4 or ipv6). You can also add another record with the same exact settings but change the"ip_version": "ipv4"if you want to update the A and AAAA records at the same time.@qdm12 commented on GitHub (Jun 1, 2020):
Actually i had to merge it in the master branch, so it's now available in the
:latestdocker tag. I'll close the issue, feel free to comment / reopen if it doesn't work (or if it works). Thanks!@tools400 commented on GitHub (Jun 2, 2020):
I promise to check the new ipv6 support for Cloudflare as soon as possible. But it may take until next weekend.
@qdm12 commented on GitHub (Jun 2, 2020):
Hi, Thanks for pinging back! No hurry, anyway someone will eventually create another issue if ipv6 doesn't work 😄 Of course if you can find a use for it, great 👍 !
@tools400 commented on GitHub (Jun 6, 2020):
Hi, I cannot make it work with the following config file:
The error message I get is:
The web UI is also not available at port 8000.
What did I miss? Any ideas?
@qdm12 commented on GitHub (Jun 6, 2020):
I think this is an old Docker image, try pulling it again?
@tools400 commented on GitHub (Jun 6, 2020):
I pulled the docker image again and I am a little step further. The ddns-updater successfully updated the ipv4 address, but could not figure out my public ipv6 address:
My Fritz!Box does have a public ipv6 address, as well as my Synology NAS running Docker has a ipv6 address. All
IP_METHOD*environment variables (3) are set to the default valuecycle.Well, it seems there is a problem with my ddns-updater container. Now I got the following log entry:
Is there a shell in your container, such as 'sh' or 'bash'?
@qdm12 commented on GitHub (Jun 6, 2020):
There is no OS in the container so no shell 😕
Can you try
If it doesn't work, please try:
If the second works but not the first command, please read that section (for another of my container, but I'll add it there if that's the cause).
Adding this to your ddns-updater run command / docker-compose should fix your problem 😉
@tools400 commented on GitHub (Jun 6, 2020):
Both commands timed out, although your container is assigned to network 'bridge', which has ipv6 enabled. I think I first ask my son to help me before stealing your time.
@qdm12 commented on GitHub (Jun 6, 2020):
No problem, I'm happy to help (and fix that container too!).
Sadly I have no ipv6 from my isp, so I can't test it 😞
On my side, running
gives me
wget: can't connect to remote host: Address not availableandgives me
wget: can't connect to remote host: Network unreachable. What do you get?And out of curiosity, does https://api6.ipify.org work and give you your ipv6 address? Thanks!
@tools400 commented on GitHub (Jun 8, 2020):
Hi,
Good news. I changed
network_modefrombridgetohostindocker-compose.yamland now it works fine. I could successfully update a 'A' and a 'AAAA' record at Cloudflare. So basically updating 'AAAA' records at Cloudflare works. Now I have to check my IPv6 configuration.Last but not least, I also successfully tested specifying multiple host as a comma separated list at parameter "host". Nice and useful feature. I like it.
Good job. Thank you very much.
Regards,
Thomas.
@tools400 commented on GitHub (Jun 8, 2020):
That also timed out when executed in a docker container. But it returned the proper address when executed in a browser. So that is the same thing as with https://ip6.ddnss.de/meineip.php.
I need to check and re-configure my IPv6 configuration.
Thomas.
@qdm12 commented on GitHub (Jun 8, 2020):
Glad to hear!
Let me know once you fix it with your Docker bridged network, I'll add it to the readme.
Congrats for switching to ipv6 👍
@tools400 commented on GitHub (Jun 8, 2020):
I will gladly get in touch with you, once that I fixed the ipv6 problem. But be patient. It may take some days.
@hereisderek commented on GitHub (Nov 19, 2020):
I have ipv6 enabled, and I'd love to help, however, my knowledge regarding docker is rather limited
alpine:latest doesn't seem to have ipv6 enabled by default, which is probably why we weren't able to get the ipv6 address
however, since we are using bridged network, wouldn't the ipv6 address for the docker instance be different with the host?
@hereisderek commented on GitHub (Nov 19, 2020):
also found some links that might be useful for future reference
https://medium.com/@skleeschulte/how-to-enable-ipv6-for-docker-containers-on-ubuntu-18-04-c68394a219a2
https://docs.docker.com/network/network-tutorial-standalone/
https://docs.docker.com/network/bridge/#use-ipv6
@hereisderek commented on GitHub (Nov 19, 2020):
system restart docker
check
docker network inspect bridge"EnableIPv6": truechange docker-compose.yml to
network_mode: hostmy config.json is as follow, those two entries are actually the same domain, not sure how to update both ipv4 and ipv6 at the same time
the ipv6 address it detected is actually wrong, however,
docker run --net=host -it --rm alpine:3.11 wget -qO- https://ip6.ddnss.de/meineip.phpreturns the correct oneinside the docker
"noip6" using http://ip1.dynupdate.no-ip.com
"noip8245_6" using http://ip1.dynupdate.no-ip.com:8245
these two URL returns ipv4 address instead of expected ipv6
@qdm12 commented on GitHub (Dec 16, 2020):
Thanks @hereisderek I'll add what you wrote to the wiki!
You cannot for now but that's a nice feature that I should add (like option
ipv4 and ipv6on top ofipv4,ipv6andipv4 or ipv6)I just fixed the links in the readme for noip, although the ones in the code were correct.
Do you get the correct IPv6 address using http://ip1.dynupdate6.no-ip.com and http://ip1.dynupdate6.no-ip.com:8245? Also can you access them over https? Thanks!
@hereisderek commented on GitHub (Jan 12, 2021):
sorry I completely missed your reply, here is my testing results:
the ipv6 address it detected is actually wrong,I can't remember exactly, but it might be that the ipv6 address that was returned from the URL are correct, but somehow it was parsed wrong in the app. but again, I don't remember exactly
@qdm12 commented on GitHub (Jun 22, 2021):
That is very much likely related to the issue #210.
Maybe using the new environment variable
IPV6_PREFIXcan help.@qdm12 commented on GitHub (Jun 13, 2023):
This should be solved in
954dffd3a7for the latest image and future release v2.6.0 (it was a bad ipv6 regex).Closing this, feel free to open another issue if you still encounter ipv6 issues with cloudflare or other providers.