Crates.io | godaddy-cli-tools |
lib.rs | godaddy-cli-tools |
version | 0.1.5 |
source | src |
created_at | 2023-08-20 18:27:05.029309 |
updated_at | 2023-08-27 17:39:38.652803 |
description | A command line tool for managing GoDaddy DNS records |
homepage | https://github.com/Hugo-Persson/godaddy-cli-tools |
repository | https://github.com/Hugo-Persson/godaddy-cli-tools |
max_upload_size | |
id | 949485 |
size | 47,867 |
CLI tools for the DNS provider GoDaddy, useful tools to manage subdomains.
Run
cargo install godaddy-cli-tools
Run
godaddy help
to get a list of commands.
To get started first run
godaddy init
This will create a config file with default config. By default the config path is places at ~/.config/godaddy-cli-tools.json
, this can be overidden with the -c
flag.
A couple of things needs to be changed in this file to get started
example.com
to the main domain you want to create subdomains fromOne of the main use cases of this program is watching the public IP of the device it runs on and updating DNS records if the public IP changes.
To register a domain run:
godaddy register mysubdomain
and replcae mysubdomain
with your subdomain.
This will create/update the record for this subdomain to point to the IP adress of the device command ran at and add the record to watch list.
To check for changes run
godaddy check
This will check if the domain has changed since the command was last run. If it is the first time the command is run then domains will be refreshed to point to current IP.
The program keeps track of last IP in a file located at ~/.lastip
Production
key