Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Cloud DNS
    • Resolving the `Incorrect format. Text string too long` error
    • Resolving the `Incorrect format expected an integer` error when creating an MX record
    • How to delegate a domain to Cloud DNS servers
    • How to transfer Cloud DNS to a different folder or cloud

In this article:

  • Issue description
  • Solution
  1. Cloud DNS
  2. Resolving the `Incorrect format. Text string too long` error

Resolving the Incorrect format. Text string too long error

Written by
Yandex Cloud
Updated at December 17, 2025
  • Issue description
  • Solution

Issue descriptionIssue description

When entering a text string, you see this error:

Incorrect format. Text string too long

SolutionSolution

In TXT records, strings longer than 255 characters are prohibited. According to RFC 4408, a longer SPF or DKIM string is split into several consecutive strings, and the reading side combines them into one. For more details, see this article.

You can split such a long record into two using this YC CLI command:

yc dns zone add-records <...> --record '<name> TXT "v=DKIM1; k=rsa; p=..." "..."'

Such a TXT record will be added successfully.

Was the article helpful?

Previous
All solutions for Cloud DNS
Next
Resolving the `Incorrect format expected an integer` error when creating an MX record
© 2025 Direct Cursus Technology L.L.C.