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 for business
    • 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
    • Center for Technologies and Society
    • 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
  • If the issue persists
  1. Cloud DNS
  2. Resolving the "Incorrect format expected an integer" error when creating an MX record

Resolving the "Incorrect format expected an integer" error when creating an MX record

Written by
Yandex Cloud
Updated at November 27, 2023
  • Issue description
  • Solution
  • If the issue persists

Issue descriptionIssue description

When creating an MX record, you see this error: Incorrect format: expected an integer.

SolutionSolution

The Incorrect format: expected an integer error indicates that when creating an MX record, one of its fields includes text instead of a number.

The MX record consists of two parts:

  • PREFERENCE: A 16-bit integer that specifies the host priority. The lower the value, the higher the host preference.
  • EXCHANGE: The FQDN of the host that processes emails in the specified zone. This field value must point to an A or AAAA record.

Alert

In the Value field, you need to specify a number (record priority) followed by text. For example, 10 mx.yandex.net.

More details here.

If the issue persistsIf the issue persists

If the above actions didn't help, create a request for support.

When creating a request, please attach a screenshot of the record settings.

Was the article helpful?

Previous
Resolving the "Incorrect format" error Text string too long
Next
Domain delegation to Yandex Cloud DNS servers
© 2025 Direct Cursus Technology L.L.C.