DNS resolver does not resolve CNAME-based DKIM records #3

Closed
opened 2026-09-05 11:57:27 +00:00 by steve · 1 comment
Owner

Having some issues with a CNAME based record and large responses.

CNAME handling: Is support planned for following CNAMEs when resolving TXT records, such as protonmail._domainkey.proton.me., where the TXT record exists at the CNAME target?

No hardcoded UDP: Is support planned for selecting the appropriate DNS transport and retrying over TCP when a UDP response is truncated or too large?

We tried a custom dns resolver as a workaround which successfully resolved the problematic record that was both under a CNAME and had a large response. Could probably replace the current solution using miekg/dns.

(from Raademar https://github.com/turscar/dkim2/issues/3)

Having some issues with a CNAME based record and large responses. CNAME handling: Is support planned for following CNAMEs when resolving TXT records, such as protonmail._domainkey.proton.me., where the TXT record exists at the CNAME target? No hardcoded UDP: Is support planned for selecting the appropriate DNS transport and retrying over TCP when a UDP response is truncated or too large? We tried a custom dns resolver as a workaround which successfully resolved the problematic record that was both under a CNAME and had a large response. Could probably replace the current solution using miekg/dns. (from Raademar https://github.com/turscar/dkim2/issues/3)
steve self-assigned this 2026-09-05 11:57:27 +00:00
Author
Owner

I already have a TODO to migrate the default resolver to using net.Resolver, which should resolve these issues. (The existing miekg resolver is as much a demo as anything else).

I already have a TODO to migrate the default resolver to using net.Resolver, which should resolve these issues. (The existing miekg resolver is as much a demo as anything else).
steve closed this issue 2026-09-05 15:07:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
turscar/dkim2#3
No description provided.