Digital Ocean CLI
I’m using DIgital Ocean for DNS records management. CLI tool can help us with that.
Install the CLI:
|
|
Note: I was required to update to latest Golang version, due the some error “undefined: os.UserConfigDir” during CLI install
View account settings with: doctl account get
DNS updates via CLI
Using CLI, let’s try to create a new A record for an existing domain:
doctl compute domain list
doctl compute domain records create --record-type A --record-name www --record-data <ip-addr> <domain-name>