dacruz / dns_updater

Small tool to handle my home IP changes by changing poiuytre.nl A record on GoDaddy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DNS Updater

Small tool to handle my home IP changes by updating poiuytre.nl A record on GoDaddy

Testing

$ go test ./...

Coverage report

$ go test -coverprofile=cover.out  ./... && go tool cover -html=cover.out

How to run it

Requisite

To run the application, you first need to decrypt secrets.yaml file. Or write your own and replace the one you've found here...

I'm using the following for encyption:

Decrypt:

$ sops -d --output-type yaml secrets.enc.yaml > secrets.yaml

Encrypt:

$ sops -e --input-type yaml --age ageEXAMPLE secrets.yaml > secrets.enc.yaml 

Deploying to your k8s cluster

$ kubectl apply -f secrets.yaml && kubectl apply -f config.yaml 
$ kubectl apply -f cronjob.yaml

About

Small tool to handle my home IP changes by changing poiuytre.nl A record on GoDaddy

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 98.7%Language:Dockerfile 1.3%