Skip to content
Contents
GuidesOpenWrt

Choose the right A and AAAA records for Cloudflare DDNS on OpenWrt

First, verify from an external network that your home IPv4 or IPv6 is indeed reachable.

First, verify from an external network that your home IPv4 or IPv6 is indeed reachable. When IPv4 uses shared addresses from your ISP, DNS updates only reflect the address—incoming traffic still depends on the ISP. For IPv6, choose a record that provides a truly operational and relatively stable interface address.

Authorize only required domains

Use a DNS editing API token restricted to the required zone. Select the corresponding Cloudflare API endpoint based on the ddns-scripts version. Separate A and AAAA record configurations for status and detection sources. Ensure DNS proxying aligns with the actual service protocol. The token is stored only within controlled permissions.

Verify that DDNS update reached a reachable address from external sources

Compare the observed IP address from ifstatus, the externally echoed address, and the DNS record. Query A and AAAA records from an authorized external terminal, then establish a connection to a clearly permissive test service.

On the router, check update logs and API responses; query authoritative records from outside; then test the service in practice. When changing the IPv6 prefix, verify the firewall configuration. After revoking temporary tokens, remove old records and unused configurations.

Correct addressing also requires external reachability. Deployment must be adjusted according to actual conditions when CGNAT or IPv6 firewall blocks inbound traffic; avoid repeatedly refreshing invalid records.

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments