Skip to content

Add flatten external plugin - #304

Open
litobro wants to merge 1 commit into
coredns:masterfrom
litobro:explugin-flatten
Open

Add flatten external plugin#304
litobro wants to merge 1 commit into
coredns:masterfrom
litobro:explugin-flatten

Conversation

@litobro

@litobro litobro commented Apr 18, 2024

Copy link
Copy Markdown

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 <14917550+litobro@users.noreply.github.com>
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