The Dynamic DNS CLI (DdnsCli) is a command-line tool built in Go for managing Dynamic DNS updates using the Name.com API. The tool helps to ensure that your domain's DNS records are kept up-to-date with your current IP address.
- Regularly checks the current IP address from my webservice.
- Compares it with the existing A record in DNS.
- Updates the record if there is a mismatch.
- Waits 5 minutes before checking again if the IP addresses match.
Before running the application, ensure that you create a .env
file in the root directory of your project with the following content:
APIUSERNAME="yourname.com_api_username"
APITOKEN="yourname.com_api_token"
DOMAIN="your domain address"
ID="id_of_your_dns_field"
git clone github.com/mugund10/dynamicdns
cd dynamicdns
go build cmd/ddnsclient/main.go
./main
- Cli is yet to be developed