Repository navigation
Closed
Labels
Milestone
Description
Summary
DDNS must keep working after restarts and temporary outages without overlapping updates or relying on an external cron/container. Add scheduling and recovery around the record synchronizer.
Scope
- Provide an explicit enabled state, configurable interval with a five-minute option, update-on-start, and a manual update command.
- Persist configuration and bounded last-run/per-target status, including the last successful addresses, next attempt, and actionable failure reasons.
- Prevent overlapping manual, scheduled, and recovery runs. Bound network requests and retry rate-limited/transient failures with backoff.
- Define disable, restart, shutdown, token-change, and restore behavior; a restored backup must not start DNS mutations until explicitly re-enabled.
Acceptance criteria
- DDNS is disabled by default and starts only after explicit activation.
- Five-minute periodic updates, update-on-start, and manual updates use the same synchronization path.
- Manual and scheduled updates cannot race to write conflicting provider state.
- Network/provider outages preserve last-known-good values and recover without a restart or an update storm.
- Rate limits and Retry-After responses are respected; permanent configuration/permission errors are distinguishable from transient failures.
- Disable cancels future work and has documented behavior for an in-flight request.
- Restart retains state while backup restoration pauses external DNS writes until deliberate activation.
- Status/events expose no tokens and provide a bounded event source for later notifications.
Verification
- Use controllable time and provider fixtures for overlap, restart, disable, retry/backoff, rate limits, partial failures, and paused restore. Add a short recovery integration test; no automatic endurance run.
Dependencies and order
Implementation step: B2-03
Priority: P1 / reliable DDNS operation
Prerequisites: #231 (B2-02).
Roadmap: v1.0.0-beta.2. Follow the numbered milestone sequence for a straightforward step-by-step implementation.
Activity
feat(ddns): complete scheduled automation and management UI
feat(ddns): add scheduled Cloudflare DDNS management (#246)
RentnerKev commentedon Oct 17, 2026
Implemented and verified in merged PR #246. Tracking B2-03 as completed.