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)
DDNS Setup

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)

DDNS Setup

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)

DDNS Setup

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, if reachable:
echo "nameserver">/etc/resolv.conf 
and try curl ifconfig.co again.