Question

TXT records with or without quotes

  • Posted March 18, 2022
  • DNS

I’m trying to configure TXT records for email deliverability (SPF, DKIM, DMARC).

I’ve seen guides for Digital Ocean that put TXT records between quotes (“v=spf1 ip4:192.168.0.1 -all”) and without quotes (v=spf1 ip4:192.168.0.1 -all).

Should I use quotes or not? Or do they work exactly the same?

Thanks!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

In most cases, it should work fine either way, but I personally prefer to add the quotes anyway.

What I personally do is to send an email to the following website:

https://mail-tester.com

It then generates a report for you which you could use to check how the email looks to the recipient server and verify if there are any unexpected issues with your TXT records.

Hello there,

The quotes are needed, you can also check our existing tutorials on How To Create a SPF Record For Your Domain with Google Apps and How To use an SPF Record to Prevent Spoofing & Improve E-mail Reliability

https://www.digitalocean.com/community/tutorials/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability

https://www.digitalocean.com/community/tutorials/how-to-create-a-spf-record-for-your-domain-with-google-apps

Hope that this helps!