Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • 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
    • Education and Science
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Cloud DNS
    • Resolving the "Incorrect format" error Text string too long
    • Resolving the "Incorrect format expected an integer" error when creating an MX record
    • Domain delegation to Yandex Cloud DNS servers
    • Transferring DNS to another directory or cloud

In this article:

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

Resolving the "Incorrect format" error Text string too long

Written by
Yandex Cloud
Updated at November 27, 2023
  • 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/DKIM string is split into several consecutive strings, and the reading side combines them into one, for example, as in this article.

You can split such a long record into two using the 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.