You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on a project where I need to configure a server handler function using the dns2 library to simulate a real DNS server for testing purposes.
I want the server handler to reject client requests with specific DNS errors, including:
dns.NOTFOUND
dns.SERVFAIL
dns.REFUSED
You can find the complete list of error codes here.
Could you please provide guidance on how to configure the server handler function to respond on client requests with these errors? Any examples or references would be greatly appreciated.
Activity
msimerson commentedon May 25, 2026
Hi @sempasha , see PR #112 for usage instructions.