Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
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
Yandex project
© 2025 Yandex.Cloud LLC