Skip to content

Installatie

Geert van Zoest edited this page Mar 31, 2026 · 2 revisions

Installatie

Vereisten

Component Minimum versie Check commando Installatie
bash 4.x bash --version Standaard aanwezig
curl 7.68 curl --version Standaard aanwezig
jq 1.6 jq --version sudo apt-get install -y jq

Raspberry Pi OS (Bullseye/Bookworm) heeft bash en curl standaard. Alleen jq moet geïnstalleerd worden.

Stap 1: jq installeren

sudo apt-get update
sudo apt-get install -y jq

Controleer:

jq --version
# Verwacht: jq-1.6 of hoger

Stap 2: Script downloaden

Optie A: via git clone

git clone https://github.com/geertvanzoest/azure-ddns.git
cd azure-ddns

Optie B: alleen het script

sudo curl -o /usr/local/bin/azure-ddns \
  https://raw.githubusercontent.com/geertvanzoest/azure-ddns/main/azure-ddns
sudo chmod +x /usr/local/bin/azure-ddns

Stap 3: Uitvoerbaar maken

Als je optie A gebruikte:

chmod +x azure-ddns

Stap 4: Testrun

./azure-ddns

Verwachte output (zonder env vars):

[2026-03-31 10:00:00] ERROR: AZURE_TENANT_ID is niet ingesteld
[2026-03-31 10:00:00] ERROR: AZURE_CLIENT_ID is niet ingesteld
[2026-03-31 10:00:00] ERROR: AZURE_CLIENT_SECRET is niet ingesteld
[2026-03-31 10:00:00] ERROR: AZURE_SUBSCRIPTION_ID is niet ingesteld
[2026-03-31 10:00:00] ERROR: AZURE_RESOURCE_GROUP is niet ingesteld
[2026-03-31 10:00:00] ERROR: DNS_ZONE_NAME is niet ingesteld
[2026-03-31 10:00:00] ERROR: DNS_RECORD_NAME is niet ingesteld

Dit bewijst dat het script correct werkt — ga nu door naar Azure configuratie.

Updates

Bij een nieuwe versie:

cd /pad/naar/azure-ddns
git pull

Of bij standalone installatie:

sudo curl -o /usr/local/bin/azure-ddns \
  https://raw.githubusercontent.com/geertvanzoest/azure-ddns/main/azure-ddns

Clone this wiki locally