zaccone / spf

Sender Policy Framework
MIT License
19 stars 6 forks source link

Multiple strings in a DNS record joined with space #18

Closed dmotylev closed 7 years ago

dmotylev commented 7 years ago

https://github.com/zaccone/spf/blob/master/spf.go#L109

strings joined with " " (Space), while RFC says they must be joined without adding space.

As defined in [RFC1035], Sections 3.3 and 3.3.14, a single text DNS record can be composed of more than one string. If a published record contains multiple character-strings, then the record MUST be treated as if those strings are concatenated together without adding spaces.

https://tools.ietf.org/html/rfc7208#section-3.3

zaccone commented 7 years ago

Thanks for opening the issue. I will fix it over the weekend or feel free to file a pull request!