Synchronize all my DNS-Records with DNSControl
If you push to develop
you just see the preview of the changes here
export CLOUDFLARE_EMAIL=xxx
export CLOUDFLARE_API_KEY=xxx
dnscontrol preview
Run the DNSControl in Docker to see changes.
docker run --rm -it \
-e CLOUDFLARE_EMAIL="$CLOUDFLARE_EMAIL" \
-e CLOUDFLARE_API_KEY="$CLOUDFLARE_API_KEY" \
-v $(pwd)/:/dns/ \
stackexchange/dnscontrol preview
Run the DNSControl in Docker to apply changes.
docker run --rm -it \
-e CLOUDFLARE_EMAIL="$CLOUDFLARE_EMAIL" \
-e CLOUDFLARE_API_KEY="$CLOUDFLARE_API_KEY" \
-v $(pwd)/:/dns/ \
stackexchange/dnscontrol push
If you need to convert a Zone-File to later use with DNSControl run convertzone
docker run --rm -it \
-e CLOUDFLARE_API_TOKEN="$CLOUDFLARE_API_TOKEN" \
-v $(pwd)/:/dns/ \
stackexchange/dnscontrol convertzone signalwerk.ch signalwerk.ch.txt > signalwerk.js