godaddydynamicdnsupdater

command module
v0.0.0-...-9a0b778 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

README

Build Status

GoDaddyDynamicDNSUpdater

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

Configuration

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"
}

How to use

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

Kubernetes

Deploy in kubernetes:

kubectl create configmap godaddy-dynamic-dns-updater-conf --from-file=config.json
kubectl apply -f ./cronjob.yaml

TODO:

  • 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL