With the free DonDNS script, you'll have your Mac 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 Mac 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. To do so, open your Terminal, navigate to the folder in which the script is located and type:
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
Works like the last example but the IP will not be automatically assigned. Instead, it will be specified via 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