Script Address#
Get KEY#
Visit https://dash.cloudflare.com/profile and find the Global API Key at the bottom of the page. Click on View on the right to view the Key and save it. Find the Global API Key at the bottom of the page, click on View on the right to view the Key and save it.
Parse Domain Name#
Set up a second-level domain name for DDNS resolution, and the traffic does not pass through CDN (cloud turns gray).
Add an A record, for example: hkt.test.com, set Proxy status to DNS only.
The IPv4 address can be arbitrary.
Run the Script#
Download the DNNS script
Configuration Information#
Modify the DDNS script and provide the relevant information
When running the script for the first time, the output will display the current IP. Go to Cloudflare to check and make sure the IP has been changed to the current IP.