os-bind: Apply silently loses newly added static records on dynamic zones (allowrndcupdate)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- php
- Área
- backend, networking
Línea de trabajo
Start by tracing the BIND reconfigure action that reloads the OPNsense/Bind template and restarts named, then inspect the zone model and generated master-file path described in the report. Check how dynamic zones with allowrndcupdate are handled during Apply and compare that with ISC's documented dynamic-zone edit cycle. Done when a static record remains in the master file and answers after Apply on a zone with dynamic updates.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug summary
Adding a static record to a dynamic zone (one with Allow RNDC update / allowrndcupdate enabled, e.g. receiving Kea DDNS updates via RFC 2136) through the GUI and pressing Apply results in the new record being silently lost. The GUI reports success, but the record never answers.
Root cause (verified on os-bind 1.34_4, OPNsense 26.7)
The reconfigure action performs, in order:
template reload OPNsense/Bind→ regenerates the zone master file from the model (contains only static records),configctl bind restart→rc.d/named restart.
On stop, named flushes its in-memory zone state (old statics + dynamic journal content, without the new record) over the freshly generated master file. On start, named loads that dumped file. The newly added static record is gone.
If the zone is not dirty (no dynamic updates since load, e.g. zones without DDNS) named does not dump, the generated file survives, and Apply works — which is why this only hits dynamic zones.
Steps to reproduce
- Create a primary zone, enable Allow RNDC update (allowrndcupdate), have a DHCP server (Kea) register dynamic records via RFC 2136 so the zone has a journal and is "dirty".
- GUI → Services → BIND → Records → add a new static A record → Apply.
- Query the new name (e.g.
dig @<firewall> newrecord.<zone>) → NXDOMAIN / no answer. - The record is also absent from the master file on disk (
/usr/local/etc/namedb/primary/<zone>.db) after Apply.
Expected: record persists and answers after Apply.
Suggested fix
For zones with allowrndcupdate enabled, the reconfigure should follow ISC's documented edit cycle for dynamic zones before regenerating templates: rndc freeze <zone> → regenerate → rndc reload/rndc thaw (or at minimum rndc sync -clean before the template reload), so the dumped state cannot overwrite the freshly generated master file.
Workarounds in the meantime
- Apply twice (second Apply loads the record because the zone is no longer dirty in that window — racy if new DDNS updates arrive in between), or
- keep DHCP-registered names in a separate zone.
Environment
- OPNsense 26.7 (FreeBSD 15.1-RELEASE-p6)
- os-bind 1.34_4
- BIND 9.20.30
- Kea DHCP (core) doing RFC 2136 DDNS into the affected zone
Reported by: Daniel Ortiz [email protected]
- Lenguaje dominante
- PHP
- Estrellas
- 1.2k
- Forks
- 926
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 25
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de opnsense/plugins
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
opnsense/plugins#5976 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directiveAbiertoincomplete
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
opnsense/plugins#5973 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)Posiblemente ocupada @bringha1 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
q-feeds-connector: "error in configd communication" every update when the Unbound DNSBL rebuild takes longer than 120sPosiblemente ocupada @mhatipog la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
Todos los issues de opnsense/plugins
Issues similares
-
15.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
open-telemetry/opentelemetry-php-distro#176 ·
Los mantenedores suelen responder en 2 días
-
No Code Attached Yet
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
joomla/joomla-cms#48941 ·
Los mantenedores suelen responder en 1 día
-
needs-triage Platform(Default)
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug new
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
moodle-an-hochschulen/moodle-theme_boost_union#1500 ·
Los mantenedores suelen responder en 1 día