Mail for domain

Yandex DNS hosting

For Yandex DNS servers to be responsible for your domain, you need to delegate your domain to Yandex servers. After delegation, you can manage the domain's DNS using the Yandex.Mail for Domain DNS editor or the API.

Note. You can add necessary DNS records for the domain before delegating it to Yandex servers if you have confirmed domain ownership. But these records will become effective only after delegation.

Yandex allows you to use DNS hosting without creating email in Yandex.Mail for Domain. In this case, after delegating the domain, delete all the Yandex DNS records except the NS records. The Yandex NS records must always be present.

You can configure the following types of DNS records:

  • A or AAAA.

  • MX. Priority must be set between 1 and 90. To set a priority value that isn't available in the drop-down list, use the API.

  • SRV. Priority must be set between 1 and 90. To set a priority value that isn't available in the drop-down list, use the API.

  • TXT. When setting up DKIM records, the maximum length of a TXT record value is 255 characters.

  • CNAME. Remember that a CNAME record can't be set up for the domain root, because this is prohibited by the RFC.

  • SOA.

    You can change parameter values within the following limits:

    Parameter nameRecommended valuesAcceptable range of values
    REFRESH14400 secondsfrom 900 to 86400 seconds
    RETRY900 secondsfrom 90 to 3600 seconds
    EXPIRE1209600 secondsfrom 604800 to 2419200 seconds
    MINIMUM14400 secondsfrom 90 to 86400 seconds
    TTL21600 secondsfrom 900 to 1209600 seconds

DNS editor

To go to the DNS editor:

  1. Open the My domains page. Click the link with the name of the domain. Domain ownership must be confirmed.

  2. Click DNS editor.

When creating a DNS record, specify in the Host field:

  • “@”, if you are setting up a record for the domain root.

  • The first part of the subdomain name before the first dot. For example:

    • If the subdomain is bar.yourdomain.tld, enter “bar” in Host.

    • If the subdomain is foo.bar.yourdomain.com, enter “foo.bar” in Host.