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:
@@ -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"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user