<div dir="ltr">Dear BIND Users,<div><br></div><div>    My name is Monika Kiss and I am currently working on a custom DNS filtering plugin for BIND 9 and I would appreciate your guidance on a few technical aspects. My goal is to intercept certain DNS queries and return a custom IP address instead of forwarding them to an upstream resolver.</div><br>Context:<br><ul><li style="margin-left:15px">I am using BIND 9’s plugin system to implement DNS filtering. (BIND9 version 9.20.6 on Ubuntu 22.04 )</li><li style="margin-left:15px">In specific cases (e.g., for high-risk domains), I want to return a predefined IP address (e.g., 192.168.1.100) instead of resolving the query normally.</li><li style="margin-left:15px">I have implemented a plugin, and I am hooking into NS_QUERY_START_BEGIN to analyze and potentially modify responses.</li></ul><div>Challenges & Questions:<br><ul><li style="margin-left:15px">Properly constructing and returning a custom DNS response.</li><li style="margin-left:15px">Plugin Development Guidance:</li><ul><li style="margin-left:15px">Are there official documentation or examples for writing custom BIND 9 plugins?</li><li style="margin-left:15px">What are the recommended hook points for intercepting and modifying DNS responses?</li></ul></ul></div><div><p>    I would be very grateful for any insights, documentation, or example implementations that could help me achieve this functionality. Thank you in advance for your support!</p><p><br></p><p><strong>Best regards,</strong></p><p>Monika Kiss</p></div></div>