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
You read it right, it’s 8 US dollars for 5 years,...
Reliable Hosting Services, introduced 2 times bef...
Details: Cloudflexy: $9.99/year/1GB memory/100GB ...
Tilaa, a long-established Dutch business, was fou...
Event page: https://core.xinix.net/cart.php?gid=7...
Port Forward Cloud, a Chinese merchant, mainly pr...
HudsonValleyHost, owned by cc, is a stable mercha...
Suyun, a Chinese merchant, provides VDS and indep...
MacHost, a newly established American hosting pro...
RackNerd, a business founded in late 2019, provid...
OdIndex Features : Automatically renew the token ...
Tencent Cloud, 2019 Techo Developer Conference, g...
RamNode, vps is quite stable and the price is fir...
iara.cloud, a Chinese merchant, mainly provides d...
ION Cloud is a new sub-brand of the old merchant ...