Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flatten external plugin #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

litobro
Copy link

@litobro litobro commented Apr 18, 2024

Adding a new external plugin that implements a form of CNAME flattening that is compatible with apex records.

It is notably different from rewrite as it only changes the response for A and AAAA records. Allowing other records such as SOA, MX, TXT etc. to be served as intended.

Implemented by checking the request NAME as a match for the parameter and that the QType is A or AAAA. Then resolves to the selected DNS Server, creates a reply and overwrites the rr header to provide the original requested NAME for RFC compliance. All other requests fall through to the next plugin.

Signed-off-by: Thomas Dang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant