From ac9947001bc80dcab2f80f16eea6d51364aaa78f Mon Sep 17 00:00:00 2001 From: carlitosbond Date: Sat, 22 Aug 2026 23:24:26 +0000 Subject: [PATCH] Add remaining subdomains to DDNS update list Root domain's subdomains are independent A records, not wildcard-CNAME-inherited, so each one needs to be tracked explicitly or the DDNS script won't keep it in sync on IP changes. Co-Authored-By: Claude Sonnet 5 --- README.md | 10 ++++++++-- porkbun-ddns.sh | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aebf448..0f3aaf0 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,14 @@ cron (cada 30 min) | `@` | `carloselugo.com` | A | | `gamesever1` | `gamesever1.carloselugo.com` | A | | `git` | `git.carloselugo.com` | A | +| `void` | `void.carloselugo.com` | A | +| `tools` | `tools.carloselugo.com` | A | +| `mealie` | `mealie.carloselugo.com` | A | +| `md` | `md.carloselugo.com` | A | +| `hits` | `hits.carloselugo.com` | A | +| `fotos` | `fotos.carloselugo.com` | A | -> **Nota:** `*.carloselugo.com` tiene un CNAME apuntando a `carloselugo.com`, por lo que cualquier subdominio nuevo hereda la IP del root automáticamente sin necesitar su propio registro A. +> **Nota:** cada subdominio es su propio registro A independiente (no hay wildcard/CNAME heredando la IP del root) — un subdominio nuevo debe agregarse explícitamente al array `SUBDOMAINS` del script, si no, el script nunca lo va a mantener actualizado aunque el registro exista en Porkbun. --- @@ -54,7 +60,7 @@ cron (cada 30 min) API_KEY="pk1_..." # Porkbun API key SECRET_KEY="sk1_..." # Porkbun secret key DOMAIN="carloselugo.com" -SUBDOMAINS=("@" "gamesever1" "git") +SUBDOMAINS=("@" "gamesever1" "git" "void" "tools" "mealie" "md" "hits" "fotos") STATE_FILE="/home/netintel/.porkbun-ddns.last-ip" LOG_FILE="/home/netintel/.porkbun-ddns.log" ``` diff --git a/porkbun-ddns.sh b/porkbun-ddns.sh index d0673ab..9061461 100755 --- a/porkbun-ddns.sh +++ b/porkbun-ddns.sh @@ -19,7 +19,7 @@ source /opt/ddns/.ddns-env DOMAIN="carloselugo.com" -SUBDOMAINS=("@" "gamesever1" "git") # "@" = root domain +SUBDOMAINS=("@" "gamesever1" "git" "void" "tools" "mealie" "md" "hits" "fotos") # "@" = root domain STATE_FILE="/home/netintel/.porkbun-ddns.last-ip" LOG_FILE="/home/netintel/.porkbun-ddns.log"