#!/bin/bash
# DuckDNS IP update script
# Replace DOMAIN and TOKEN, or pass them as env vars
DOMAIN="${DUCKDNS_DOMAIN:-YOUR_DOMAIN}"
TOKEN="${DUCKDNS_TOKEN:-YOUR_TOKEN}"
echo url="https://www.duckdns.org/update?domains=${DOMAIN}&token=${TOKEN}&ip=" | curl -k -s -o /opt/duckdns/duck.log -K -
