-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
It seems like there exist in a wild domain names that contains dots inside of labels, we reject them in the dnsmessage parser since we have no way to represent them in the Name struct, see #56246.
$ dig gc.ca SOA +noall +answer
gc.ca. 86400 IN SOA ns10.ent.global.gc.ca. ssc\.enterpriseddi-entreprise\.spc.ssc-spc.gc.ca. 2025102304 10800 3600 604800 3600
$ dig washingtonpost.com SOA +noall +answer
washingtonpost.com. 900 IN SOA sdns34.ultradns.com. admin\.contact.digitalink.com. 2016123863 3600 900 2592000 300DNS spec requires that '@' of an email becomes '.' (label separator), but the local-part can also contains dots. Meaning that foo.bar@example.com becomes foo\.bar.example.com.
Originally reported at golang/net#154 (comment)
I think the only solution might be a v2, unless there is a way to make the Name struct contain the encoded DNS form instead.
CC @fortuna
Metadata
Metadata
Assignees
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.