Skip to content

feat(ddns): synchronize Cloudflare A and AAAA records with public IP changes #231

Closed

Description

@RentnerKev

Summary

Replace the record-update function of a separate Cloudflare DDNS container. RentnerProxy must update only explicitly selected records across multiple zones when the public IPv4 or optional IPv6 address changes.

Scope

  • Define explicit DDNS targets for apex names, wildcard names, and individual subdomains, independently of whether a Proxy Host exists.
  • Discover and validate public IPv4/IPv6 addresses with bounded requests. IPv6 is optional and can be disabled.
  • Preview existing records and explicitly adopt or create selected A/AAAA records. Detect CNAME/duplicate-record conflicts and invalid zone/name combinations.
  • Configure Cloudflare proxy status per record, including exceptions such as an unproxied Git service.
  • Compare the desired content and proxy setting with current provider state and write only changed records.

Acceptance criteria

  • One synchronization handles multiple zones, apex names, wildcard names, and explicitly named subdomains.
  • A per-record proxy override works without changing unrelated records.
  • Disabling IPv6 does not create, modify, or delete existing AAAA records.
  • Invalid, empty, private, or failed IP discovery results never replace a working record.
  • Conflicting records require an explicit resolution; unrelated records and ACME TXT challenges are never overwritten or deleted.
  • Results distinguish unchanged, updated, skipped, and failed targets; one target failure does not hide successes elsewhere.
  • Repeated synchronization of unchanged state performs no unnecessary writes.

Verification

  • Use a controlled Cloudflare API and IP-discovery fixture to cover address changes, dual stack/IPv4-only operation, wildcard/apex names, proxy exceptions, conflicts, partial failure, and idempotency.

Context

Dependencies and order

Implementation step: B2-02

Priority: P1 / DDNS engine

Prerequisites: #230 (B2-01).

Roadmap: v1.0.0-beta.2. Follow the numbered milestone sequence for a straightforward step-by-step implementation.

Activity

  1. added this to the v1.0.0-beta.2 milestone on Oct 10, 2026
  2. added
    enhancement
    area: proxy
    area: runtime
    on Oct 10, 2026
  3. RentnerKev commented on Oct 17, 2026

    @RentnerKev
    MemberAuthor

    Implemented and verified in merged PR #246. Tracking B2-02 as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: proxyarea: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions