DonDNS - Free Dynamic DNS Service

    DonDNS for OS X

    Download from GitHub

    1 Introduction

    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.

    2 Download and installation

    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
    

    3 Usage

    3.1 Automatic IP

    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
    

    3.2 Fixed IP

    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
    

    3.3 Use a config file

    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 172.12.1.23
    

    The default config file is:

    /etc/dondominio/dondomcli.conf
    

    3.4 CRON

    To launch the scipt automatically you can add a CRON job adding this line to /etc/crontab:

    */5 * * * * user test -x /etc/dondominio/dondomcli.sh && /etc/dondominio/dondomcli.sh -c /etc/dondominio/dondomcli.conf