Re: About Bind Plugin development

Colin Vidal <[email protected]>
Newsgroups gmane.network.dns.bind9.user
Message-ID <0ba8819de1cf8a507bac0c9ab37ad727866a6d50.camel__26754.5100463153$1763737870$gmane$org@isc.org>
Hello,

On Fri, 2025-11-21 at 22:33 +0800, Chunhui Ouyang wrote:
> Hello everyone.
>  
> I'm developing a plugin due to client requirements, but I'm unclear
> on the overall way to write a Bind plugin. Could I request a
> complete, simple example of plugin development from the official Bind
> documentation?

A good starting point is the reference documentation:

https://bind9.readthedocs.io/en/latest/chapter4.html#developing-plugins

Then, a more detailed explanation can be found in the long comment
header in `lib/ns/include/ns/hooks.h`

After reading those two things, I'd suggest looking at a dummy plugin
in the test code:

`bin/tests/system/hooks/driver/test-syncplugin.c`

What this test plugin is doing is not important, but you can see the
various hooks points implemented as an example.

And finally we currently support 3 plugins, you can find the code in

`bin/plugin/*.c`

Thanks,
Colin Vidal
-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.