All Products
Search
Document Center

Alibaba Cloud DNS:How to add DNS records

Last Updated:Apr 03, 2025

You can add a Domain Name System (DNS) record, especially a mail exchanger (MX) record for your mailbox to point your domain name to the address of the mail server. In this way, the mailbox can receive and send emails on behalf of the domain name.

Preparation

  1. Log on to the Alibaba Cloud DNS console. On the Authoritative Domain Names tab of the Authoritative DNS Resolution page, check if the domain name for which you want to manage exists. If not, add a domain name.

  2. Check if the DNS Server Address status of the domain name for which you want to configure DNS records is Normal. If not, view DNS server status and resolve the status abnormality.

Procedure

Note

If your mailbox is one of Alibaba Mail, DingTalk Enterprise Mail, NetEase Mail, Tencent Enterprise Mail, or Sina Free Enterprise Mail, follow the Quick add method. For other mailboxes, follow the Regular add method.

Method 1: Quick add

  1. Log on to the Alibaba Cloud DNS console.

  2. On the Authoritative Domain Names tab of the Authoritative DNS Resolution page, find the domain name for which you want to add a DNS record, and click DNS Settings in the Actions column.

    image

  3. On the DNS Settings tab, click Add DNS records.image

  4. On the Add DNS records page, click Add DNS Records for Mailbox. Select a mailbox type and click OK. A Quick Setting Results dialog box will appear to confirm that the configuration is completed.

    Note

    After the DNS record is added, the mailbox system will automatically refresh the resolution status periodically. If your email address is registered with Alibaba Mail, you can also manually refresh the resolution status by referring to the Manually refresh the resolution status. If your email address is not registered with Alibaba Mail, please contact your mailbox provider for the relevant operation.

    image

Method 2: Regular add

  1. Contact your email service provider to obtain the DNS records that you need to add for your mailbox.

    Note

    The DNS records provided by Alibaba Mail in the following table are for reference only. The DNS records provided by your email service provider shall prevail. For self-hosted mailboxes, contact your technical staff to obtain the DNS records that you need to add for your mailbox.

    Hostname

    Record type

    Priority

    Record value

    Description

    @

    MX

    5

    mx1.qiye.aliyun.com

    Specify the mail server that receives emails for the domain name. A domain name can have multiple MX records. A smaller value indicates a higher priority.

    @

    MX

    10

    mx2.qiye.aliyun.com

    @

    MX

    15

    mx3.qiye.aliyun.com

    imap

    CNAME

    imap.qiye.aliyun.com

    Enables the email client to receive emails by configuring an IP address in the "imap.domain" format.

    pop3

    CNAME

    pop.qiye.aliyun.com

    Enables the email client to receive emails by configuring an IP address in the "pop3.domain" format.

    smtp

    CNAME

    smtp.qiye.aliyun.com

    Enables the email client to receive emails by configuring an IP address in the "smtp.domain" format.

    mail

    CNAME

    qiye.aliyun.com

    Enables users to go to the webmail login page of the mailbox by entering "mail.domain" URL address.

    @

    TXT

    v=spf1 include:spf.qiye.aliyun.com -all

    An SPF record. A technology that authenticates the identity of an email sender using an IP address. It is a very efficient spam solution. The recipient will first check the domain's SPF record to determine whether the sender's IP address is included in the SPF record. If it is included, it is considered a legitimate email. Otherwise, it is considered a forged email and will be returned.

  2. Log on to the Alibaba Cloud DNS console.

  3. On the Authoritative Domain Names tab of the Authoritative DNS Resolution page, find the domain name for which you want to add a DNS record, and click DNS Settings in the Actions column.

    image

  4. Click Add DNS Record. Separately configure an MX record, a canonical name (CNAME) record, and a text (TXT) record. The following figures show how to configure these records.

    image

  • Configure an MX record

    image..png

  • Configure a CNAME record

    image..png

  • Configure a TXT record

    image..png

Note

After the DNS record is added, the mailbox system will automatically refresh the resolution status periodically. If your email address is registered with Alibaba Mail, you can also manually refresh the resolution status by referring to the Manually refresh the resolution status. If your email address is not registered with Alibaba Mail, please contact your mailbox provider for the relevant operation.

FAQ

MX records