Script used to check and update your GoDaddy DNS server to the IP address of your current internet connection.
This client was created based on the project "GoDaddy_Powershell_DDNS" by markafox: https://github.com/markafox/GoDaddy_Powershell_DDNS
In order to use the script it is necesary to create a developer account and get your key
and secret
from the GoDaddy developer site.
https://developer.godaddy.com/getstarted
Example of configuration using the godaddy testing api:
{
"URL":"https://api.ote-godaddy.com/v1/domains/",
"Domain":"abchub.org",
"Name":"@",
"Key":"UzQxLikm_46KxDFnbjN7cQjmw6wocia",
"Secret":"46L26ydpkwMaKZV6uVdDWe"
}
To build the binary:
go build .
To build the dockerfile:
docker build -t godaddy-dns-updater .
To run the docker image:
docker run -v $(PWD)/config.json:/config.json godaddy-dns-updater
test_config.json
Deploy in kubernetes:
kubectl create configmap godaddy-dynamic-dns-updater-conf --from-file=config.json
kubectl apply -f ./cronjob.yaml
- Eliminate the file and compare the IP from Godaddy with my public IP. Also show in the logs the IP before and after the change.