How to automatically my DNS A Record when WAN IP updates?

What is the name of the domain?

jg media.net

What is the error number?

No Error

What is the error message?

No message

What is the issue you’re encountering

When my WAN IP address updates without my knowledge I lose remote access to parts of my NAS

What steps have you taken to resolve the issue?

I had to manually update my DNS A record to regain access to my domain. The domain for my Emby server and DDNS is supported by Cloudflare. Is there an automated way to change the DNS “A” Record on Cloudflare when the WAN IP is changed so I don’t lose remote access to my NAS? Hope this makes sense. Thanks for any guidance

Sorry, domain is: jgcmedia.net

You’d have to run some script on the host, either NAS if it’s online always.
Check the lease time from DHCP, otherwise determine your public IP via script or API online, and create a schedule task or cronjob which would execute/sent an HTTP request using Cloudflare API to update the specific DNS record.

Some known and working implementations:

Other - not tested by me:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.