mholt / caddy-dynamicdns

Caddy app that keeps your DNS records (A/AAAA) pointed at itself.
Apache License 2.0
236 stars 24 forks source link

Replace with api64.ipify.org endpoint #15

Closed leonghui closed 2 years ago

leonghui commented 2 years ago

Fixes #14

francislavoie commented 2 years ago

Is that correct? Can api64.ipify.org be used for both IPv4 and IPv6? Or just for IPv6?

francislavoie commented 2 years ago

Oh okay, I see on https://www.ipify.org/

Oct 1, 2020 the A record for api6.ipify.org will be removed to make the subdomain only for IPv6 requests. For universal access please use api64.ipify.org.

So this seems good to me 👍, 64 means "v6 and v4", not "64-bit" or something 😅

leonghui commented 2 years ago

Yup it works for both:

$ curl -4 https://api64.ipify.org
116.88.x.x

$ curl -6 https://api64.ipify.org
2406:3003:x:x::x