NLnetLabs / simdzone

Fast and standards compliant DNS zone parser
BSD 3-Clause "New" or "Revised" License
68 stars 13 forks source link

Add callback to signal `$INCLUDE`s #229

Closed k0ekk0ek closed 2 months ago

k0ekk0ek commented 2 months ago

NLnetLabs/nsd#57 describes how NSD fails to detect zone files changed if an $INCLUDEed file is updated. The parser concerns itself with deserialization and does not maintain any contextual state. The best approach seems to add an additional callback that is called whenever an included file is closed so that the application can register any dependencies that may exist. Registering the callback should not be required for normal operation.