Skip to content

dnsdist: ability to append data to packet #6846

@dmccombs

Description

@dmccombs
  • Program: dnsdist
  • Issue type: Feature request

Short description

This is a feature request that I would intend to implement myself, but want to get a general idea of whether this functionality would be accepted in a pull request before I go forward, so I can weigh other implementation paths I could take before starting.

Usecase

The ability to pass additional environment information from dnsdist to downstreams that would otherwise not have that information, outside of standard DNS data to avoid invalidating TSIG hashes.

Description

I would like to add the following functionality:

  • Ability to append data to the end of the DNS packet before it's sent to a downstream from a rule and/or Lua

The use case here is that we would have a dnsdist instance with access to additional client information handling queries signed with TSIG, which needs to pass the additional client information on to downstreams we also control to be used in determining responses, without invalidating the TSIG hash. By appending the data to the end of the packet after the length of DNS data, it would normally be ignored by resolvers.

I recognize this is a pretty specific use case, so I'm trying to get an idea of whether we can add a generic enough and useful feature to dnsdist that would be accepted, but would meet our needs, before we go forward with deciding on how we proceed ourselves. Feedback and thoughts welcome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions