Previously introduced: using AliDDNS to deploy fixed domain names for dynamic IP VPS/NAT VPS, this time we will use CloudFlare API to deploy fixed domain names for dynamic IP VPS/NAT VPS. Of course, it is still a reprint. Welcome to the TeleGram group discussion: https://t.me/zhujiwiki 1. Method 1 is provided by TG group members. It is the most convenient and recommended. 2. Configure the file and run it Edit ddns.sh, mainly modify auth_email to your CF email address, auth_key to API KEY, zone_name to your primary domain name, record_name to the secondary domain name you want to use as DDNS (do the resolution before, fill in 127.0.0.1 for the resolution record) Run the file and check the CF parsing to see if the IP has changed. 3. Configure Crontab tasks Add the following code Check every 5 minutes to see if the IP has changed. 5. Detect IP address Method 2 a. Get API KAY b. Get zone_id c. Set the domain name resolution to use DDNS 2. Configure DDNS related a. Download the file to the server where you want to deploy DDNS b. Edit config.conf Fill in the CloudFlare account email, API KAY, zone_id c. Get record_id Input 1 You will get a piece of code, which contains the id we need, which is the record_id d. Continue editing config.conf Fill in the following three items. The record_id is the one you just obtained, the domain name is the domain name you just resolved, and ttl is 120. e. Analyze dynamic VPS IP Log in to CloudFlare to check whether the IP is automatically changed to the server's IP f. Configure Crontab tasks Add the following code The original source is https://sometimesnaive.org/article/5, the project address is https://github.com/nanqinlang-script/CloudFlare_DNS_Record, and the pictures and text are https://www.neworld.studio/index.php/archives/93/ |
<<: CloudIPLC: 24 yuan/month/384MB memory/4GB SSD space/600GB traffic/NAT/KVM/Jiangsu Mobile
>>: Magic Cube Cloud: 225 yuan/month/4GB memory/60GB SSD space/1.5TB traffic/KVM/Hong Kong HKBN
Aiba has introduced it twice, and it has the late...
Cloudean is a foreign merchant established in 201...
MicroNodes, a newly established American hosting ...
www.value-domain.com is a NS server provided by J...
VPCKR, a Korean merchant, mainly provides Korean ...
TmhHost, a Chinese business, has been introduced ...
Details : A400 interconnection: 129 yuan/year/1 c...
Netcup, a German hosting company, was founded in ...
DMIT, an American hosting company, was founded in...
50kvm, a subsidiary of Wuling Network, has been i...
IMIDC (Rainbow Network, also known as Rainbow Clo...
CubeCloud, a Chinese host, was founded in 2016. I...
SteadyTurtle, has 4 years of experience in the ho...
Inception hosting is a British hosting company th...
PieLayer has been introduced many times in the ho...