Dynamic DNS Setup
Dynamic DNS Tutorial
1.Getting your external IP
Login your VNC Console.
Login into your system, using username `root` and pre-set password to login. you can find the password in setup email, or you can reset password in the control panel.
Run “curl ifconfig.co”, you may need to install curl first.
Then you can connect to your VPS via SSH, using your external IP.
2.Using crontab and CloudFlare API for DDNS update.
Edit the sections to the screenshot below: (https://i.imgur.com/rfJWuqZ.png)
Leave CFID empty at this time.
For example, Your domain is example.com, and your preferred DDNS domain is ddns.example.com.
You should fill the blanks as the screenshot below: (https://i.imgur.com/BXNTpxT.png)
Just execute this script and it will fetch all your subdomains’ CFID. Pick your preferred DDNS’ CFID and fill it to the script. (https://i.imgur.com/hl4zBw6.png)
At last, add this script to crontab, you can automatically update your DDNS.
For crontab tutorial, see https://www.tutorialspoint.com/unix_commands/crontab.htm
Failed to curl?
ping 184.108.40.206, if reachable:
echo "nameserver 220.127.116.11">/etc/resolv.conf
and try curl ifconfig.co again.