Skip to content

Dynamicaly update A and AAAA records managed by the DO DNS service

License

Notifications You must be signed in to change notification settings

Digelly/DO-DDNS-Command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DO IP Updater

Allows the dynamic updating of an 'A' or 'AAAA' record that is managed by Digital Ocean's DNS servers.

Requirements

  • PHP 7.3 or higher

Installation

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 

Usage

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

About

Dynamicaly update A and AAAA records managed by the DO DNS service

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages