Last update at :2024-06-03,Edit by888u
I have previously introduced the use of CloudFlare and AliDDNS to create fixed domain names for dynamic IPs: Use CloudFlare API to deploy fixed domain names for dynamic IP VPS/NAT VPS. Use AliDDNS to deploy fixed domain names for dynamic IP VPS/NAT VPS
This time, DNSPod and dns.he.net are used to deploy fixed domain names for dynamic IP VPS/NAT VPS. It uses GoDNS, which supports Linux, ARM Linux, Windows, MacOS, etc., and can be used on various systems. The following is an example using debian 8 64-bit and GoDNS V1.5.2.
1. Download GoDNS and configuration files a. Download GoDNS
wget --no-check-certificate https://github.com/TimothyYe/godns/releases/download/V1.5.2/godns-linux64-1.5.2.tar.gz tar -xvf godns-linux64-1.5.2.tar.gzOther versions of GoDNS: https://github.com/TimothyYe/godns/releases
b. Download the configuration file wget –no-check-certificate https://github.com/timothyye/godns/blob/master/config_sample.jsonmv config_sample.json config.json
2. For the DDNS configuration of dns.he.net, add an A record at dns.he.net. Name is dyndns or other, Ipv4 is optional, TTl is set to 5 minutes, and Enable entry for dynamic dns is selected
Set key for dynamic domain name
Modify the configuration file config.json
{ "provider": "HE", "email": "Your dns.he.net registered email address", "password": "Created dynamic domain name key", "login_token": "", "domains": [{ "domain_name": "example.com", "sub_domains": ["www","test"] },{ "domain_name": "example2.com", "sub_domains": ["www","test"] } ], "ip_url": "http://members.3322.org/dyndns/getip", "log_path":"/users/timothy/workspace/src/godns/godns.log", "socks5_proxy": "" }"domain_name": "example.com", where example.com is your primary root name. "sub_domains": ["www", "test"] where www and test are second-level domain names, you can set a < /p>
3. DNSPod DDNS configuration is relatively simple, the domain name is well resolved, and then the configuration file is modified.
{ "provider": "DNSPod", "email": "Your DNSPod registration email", "password": "Your DNSPod password", "login_token": "", "domains": [{ "domain_name": "example.com", "sub_domains": ["www","test"] },{ "domain_name": "example2.com", "sub_domains": ["www","test"] } ], "ip_url": "http://members.3322.org/dyndns/getip", "log_path": "./godns.log", "socks5_proxy": "" }"domain_name": "example.com", where example.com is your primary root name. "sub_domains": ["www", "test"] where www and test are second-level domain names, you can set a < /p>
The full text is reproduced from: https://github.com/TimothyYe/godns. Check out the project for more usage.
Recommended site search: icp fast registration, Guangzhou host rental, free asp space, Hong Kong vps host, Ministry of Industry and Information Technology website registration query, website registration domain name query, dynamic ip server, server Hong Kong, registered domain name query, Dalian virtual host, < /p>
发表评论