With the free DonDNS script, you'll have your PC accessible from everywhere, even if your ISP changes your IP address on every connection.
Use one of your domains as a CNAME to access your PC from the Internet. You won't need to remember your IP address anymore.
You can download the script directly from here.
To install the script it must be placed in any folder and give it execution permissions in case it already doesn't have them:
chmod +x ./dondomcli.sh
This way the IP of the DNS zone for HOST will be updated with the IP of the machine where the script is executed.
./dondomcli.sh -u DONDOMINIO_USERNAME -p DONDNS_API_KEY -h HOST
The same than the last example but the IP will not be automatically assigned. Instead you provide it using an argument:
./dondomcli.sh -u DONDOMINIO_USERNAME -p DONDNS_API_KEY -h HOST -i IP
If you don't want to always specify a username and DonDNSKey, it can be given via a config file that can be used like this:
./dondomcli.sh -c FILECONF
The other options can be specified with the same config with different hosts:
./dondominio.sh -c FILECONF -h HOST1.DOMINIO.ES ./dondominio.sh -c FILECONF -h HOST2.DOMINIO.COM -i 22.214.171.124
The default config file is:
To launch the scipt automatically you can add a CRON job adding this line to
*/5 * * * * user test -x /etc/dondominio/dondomcli.sh && /etc/dondominio/dondomcli.sh -c /etc/dondominio/dondomcli.conf