First, the original intention
I want to have my own domain name, and then have my own server, set up a website on the server or open an FTP service,
I want to access it through this domain name.
Second, what is DDNS
DDNS Dynamic DNS, Telecom broadband using Dial-Up Networking mode, router or light cat after each dial is dynamic acquisition of IP address.
That is, the operator does not have a separate static IP address for you.
At this time, if you want to be able to access your LAN's computer or service through the public network, you need to know the IP of the corresponding public network,
And this IP is not stable, so you can through the DDNS service, just remember the domain name can be. As for IP address-to-DNS bindings,
is done by the service provided by the peanut shell.
Third, the realization
1. Registering a domain name
Register a domain name on the peanut shell and open the peanut shell service.
2. Local computer (Linux) executes a script to update DNS-to-IP mappings
1 #!/bin/bash 2 domain= www.abc.com " 3 username=" example 4 Password= " mypassword " 5 /usr/bin/curl http://$username: [ Email protected]/ph/update?hostname= $domain
3. Add to Cron (CRONTAB-E) and execute the script every 5 minutes.
*/5 * * * * SH ~/bin/refresh-ddns.sh
Four, small tools
1. See if a website has a certain port open
Webmaster tools → Port scan: http://tool.chinaz.com/port/
2. Oray Management Center: https://console.oray.com/account/message/
3. Peanut Shell Management: https://b.oray.com/domain/
Reference:
1. http://cmdschool.blog.51cto.com/2420395/1703233
Open Domain Binding DDNS