Skip to content

Configuring Server Handler for DNS Errors #98

Closed

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!

Activity

  1. msimerson commented on May 25, 2026

    @msimerson
    Collaborator

    Hi @sempasha , see PR #112 for usage instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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