Skip to content

Configuring Server Handler for DNS Errors #98

@sempasha

Description

@sempasha

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions