: Do SPF and DKIM TXT records require quotes? I have been searching for some hours now, but multiple sources say different things. https://support.wordfly.com/hc/en-us/articles/204767474-How-do-we-publish-DKIM-and-SPF-in-our-DNS-
I have been searching for some hours now, but multiple sources say different things.
support.wordfly.com/hc/en-us/articles/204767474-How-do-we-publish-DKIM-and-SPF-in-our-DNS- States I should not include quotes, whereas stackoverflow.com/a/9784925/1293725 reads quotes should be included in these TXT records.
These are just some examples of sources, but there are many more.
So should these records include quotes or not?
More posts by @XinRu657
1 Comments
Sorted by latest first Latest Oldest Best
In the (raw) DNS zone file, the value of a TXT record needs to be enclosed in double-quotes if it contains spaces (as is the case with SPF and DKIM records).
However, as mentioned in comments, you often use another tool to edit DNS records (you don't usually edit the DNS zone file directly, although WHM does give you this option). This other tool will probably handle the quotes and any additional escaping that is required to make the record valid. If you manually surround the value in quotes when submitting the value using your editor/tool then these additional quotes might be escaped and become part of the TXT record value.
Incidentally, when you do a DNS lookup, you are seeing the parsed/unquoted string value.
Reference: en.wikipedia.org/wiki/TXT_Record https://tools.ietf.org/html/rfc1464
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.