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.
Thank you!
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:
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.
Thank you!