A Cloudflare Workers serverless function for IP-based redirection and dynamic configuration using KV.
Set up a crontab scheduled task or
For Synology NAS, open "Control Panel" --> "Task Scheduler" --> "Create" --> "User-defined script", execute every minute.
curl https://dns.yourname.workers.dev/?token=123
open https://dns.yourname.workers.dev will redirect to your ip.
curl https://dns.yourname.workers.dev/?token=123&ip=1.2.3.4
curl https://dns.yourname.workers.dev/?token=123&port=5000
curl https://dns.yourname.workers.dev/?token=123&ip=1.2.3.4&port=5000