close

Slick­Stack

July 2025 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

why are quotation marks now required for TXT records?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27269
    Mark
    Guest

    Cloudflare is now warning you if your TXT records do not contain quotations and sometimes they force add them for you, I don’t remember this ever being part of the DNS spec in the past.

    #27272
    Eric
    Guest

    can you give a example what you mean

    #27273
    Barbara
    Guest
    #27274
    Olivia
    Guest

    They are not technically required but it helps for user clarity, I am guessing Cloudflare recently started requiring the quotes just for UI purposes? Maybe they are being stripped out when the DNS record is actually queried?

    https://www.mailhardener.com/blog/5-common-mistakes-with-spf

    Mistake 2: Quoted TXT record

    The content of a DNS TXT type record is often displayed with double quotes, but those quotes are not (or should not be) part of the actual DNS record content.

    The quotes are there for display purposes only. Since a TXT type DNS record is allowed to contain leading/trailing whitespace characters, the quotes help to distinguish the start and end of the record content.

    Hence, it is common for email services to show setup instruction with quotes in the examples, but you should not include those quotes in the actual DNS record.

    The SPF standard states that the SPF record must begin with v=spf1, so if your record starts with “v=spf1 (note the quote) it will not be recognized.

    To make matters worse, some DNS service providers require you to add the quotes when pasting, and some don’t. This leads to confusion.

    #27275
    Samuel
    Guest

    I don’t like it tbh, it looks janky.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: why are quotation marks now required for TXT records?

Thanks to our generous sponsors for their support!