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 <noreply@anthropic.com>
This commit is contained in:
2026-08-22 23:24:26 +00:00
co-authored by Claude Sonnet 5
parent 3801f036b7
commit ac9947001b
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -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"
```
+1 -1
View File
@@ -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"