net: Resolver CNAME size limit #51652
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Adding a CNAME bigger than 63 bytes make methods like
LookupCNAME
fail without even calling the custom dial method. With 63 bytes, the custom dial method get called without problem.PoC: https://go.dev/play/p/Y9tCeJjcuUI
What did you expect to see?
As described in the RFC upto 255 chars should be considered valid.
What did you see instead?
The method
LookupCNAME
fails with CNAMES with more than 63 bytesThe text was updated successfully, but these errors were encountered: