]> git.ipfire.org Git - thirdparty/bind9.git/commit
filter-aaaa can be used as zone or view plugin
authorColin Vidal <colin@isc.org>
Tue, 10 Jun 2025 14:32:04 +0000 (16:32 +0200)
committerColin Vidal <colin@isc.org>
Tue, 9 Sep 2025 07:42:34 +0000 (09:42 +0200)
commite8156b394ea5ff3f3c038dc3e44cc837531df876
treefc3ef50393d925e61bf490f736389ce84c01f1b8
parent1566634fae9bb9672fb7d54de6a9673d471e1b12
filter-aaaa can be used as zone or view plugin

Update the filter-aaaa system test so the two authoritative zones
in ns4 both configure filter-aaaa as a zone plugin.

In order to work in both contexts, the plugin must register both
the `NS_QUERY_QCTX_INITIALIZED` and `NS_QUERY_AUTHZONE_ATTACHED`
hooks.

When the plugin is configured at the zone level in an authoritative
server, `NS_QUERY_QCTX_INITIALIZED` is skipped, because no zone will
have been looked up by the time it is called.  When the zone is
found, calling `NS_QUERY_AUTHZONE_ATTACHED` will allow the same
initialization to occur.
bin/plugins/filter-a.c
bin/plugins/filter-aaaa.c
bin/tests/system/filters/ns4/named.conf.j2