mholt / caddy-dynamicdns

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

do not update IPv6 #32

Closed LisonFan closed 2 years ago

LisonFan commented 2 years ago

config

{
dynamic_dns {
        provider cloudflare <API_TOKEN>
        domains {
            domain.com sub-1 sub-2
        }
        ip_source upnp
        ip_source simple_http https://icanhazip.com
        ip_source simple_http https://api64.ipify.org
        check_interval 2m
        versions ipv4 ipv6
        ttl 1m
    }
}

log

image

francislavoie commented 2 years ago

You used versions ipv4 ipv6. If you don't want IPv6 to be updated, just remove ipv6 from there.

Also, you don't need to specify the ip_source if you're just using the defaults. Please read the README again, see the minimal Caddyfile config.

LisonFan commented 2 years ago

You used versions ipv4 ipv6. If you don't want IPv6 to be updated, just remove ipv6 from there.

Thank you for your reply. I need to update ipv6, but it doesn't update.

LisonFan commented 2 years ago

It should be a configuration problem. Now it works properly.