Allows the dynamic updating of an 'A' or 'AAAA' record that is managed by Digital Ocean's DNS servers.
- PHP 7.3 or higher
Download and unzip the phar file.
curl -sL https://github.com/Digelly/DO-DDNS-Command/releases/download/v1.0.0/ip-update.zip > ip-updater.zip
unzip ip-updater.zip
rm ip-updater.zip
mv ip-update.phar ip-updater
First set your DigitalOcean API token as en env var before you can run the command.
$ set DO_API_TOKEN=YourTokenHere
Most simple way is to just pass it the domain and record name that need to be updated, if its not a sub
domain it is usually named @
.
This will then update the ipv4 (A
type) record named @
for domain your-domain.com
ip-updater ip:update your-domain.com @
If you want to update the ipv6 (AAAA
type) record you pass the --ipv 6
option.
ip-updater ip:update yourdomain.com @ --ipv 6
or update both types at once with the --all
flag
ip-updater ip:update yourdomain.com @ --all