#UniFi Cloudflare DDNS

1 messages · Page 1 of 1 (latest)

brave hemlock
#

Hi there!

Recently, we received an update from UniFi that allows us to use Cloudflare DDNS to modify the IP address of our domain DNS records. I’ve tested it, and it seems to be working.

However, there’s an issue with the proxy status on Cloudflare for that DNS record. It doesn’t seem to be carrying over from the original “proxied?” status. Does anyone know if there’s a fix for this or if there are any plans to address it?

For instance, I have two DNS-only records and one proxied record. When the update was applied, the proxied record was mistakenly set to DNS-only.

I’d greatly appreciate any help or insights you can provide on this matter.

errant berry
#

That seems like an issue with how UniFi implemented the DDNS. It would need to be fixed on their end

brave hemlock
#

I see, thank you

I talked to support and they said they would share the feedback with the team

rustic bone
#

It could be by design. Just thinking about this. You use DDNS to return your IP address. If it's a proxy record, it obviously won't return your IP through the DDNS update? But interesting either way. 🙂

brave hemlock
# rustic bone It could be by design. Just thinking about this. You use DDNS to return your IP...

UniFi is acting as my router in this case, so it always knows the current IP assigned by my ISP since it’s directly connected via the WAN. It uses the Cloudflare API credentials to update the IP address of the configured DNS records—only if it detects a change—so the initial state of the record (including whether it’s proxied or not) doesn’t really matter from an update perspective.

That said, I do agree it’s strange that the proxied status isn’t preserved. I know a server-side script could achieve the same thing, but having this built directly into the router is just so much more convenient.

With a script, you can explicitly control the proxy flag via the API. But I’m not sure how UniFi is handling that part under the hood—maybe they just don’t send that parameter at all, or they default to DNS-only.

rustic bone
#

🙂 Interesting one for sure

swift plank