Joke Collection Website - Talk about mood - Cloudflare configures dynamic dns(ddns).

Cloudflare configures dynamic dns(ddns).

Recently, because of some things, I dare not use a domestic dns parser, so I switched to a foreign dns parser; Originally, I wanted to use the service provided by dns.he.net, but I was not very friendly to some free domain names (tk\ml\cf), so I switched to dns resolution of Cloudflare, and there are many tutorials on domain name application and domain name resolution operation on the Internet, so I won't explain them here, and I will focus on the operation of DDNS.

? Cloudflare provides a powerful api, and according to its own network topology, it can easily update public IP to dns resolution service. If your public ip is on the computer (that is, dialing through PPPoE), there are many ways to ddns. You can use Python scripts and two libraries, requests and json, and you can get ddns configuration. If it is on the route, it must be implemented with Linux shell. Scripts are listed and explained here.

? Specifically, the parameter ipl(ip local) is the public ip address obtained by the local command, and the parameter ip is the public ip determined by the external network. The judgment of public network ip is based on its own network. For example, after dialing, there are multiple public IP's. When nat is configured during load balancing, it is necessary to determine which public IP to access through the parameter ipl.