All Products
Search
Document Center

Server Load Balancer:Use an A record to resolve a domain name to an IP address

Last Updated:Oct 10, 2023

You can resolve the domain name of a Classic Load Balancer (CLB) instance to the public IP address of the CLB instance.

Background information

For example, the domain name of your website is www.aliyun.com. After you create a CLB instance, the system assigns the public IP address 198.51.XX.XX to the CLB instance. You must add the Elastic Compute Service (ECS) instance on which the website runs to the backend server group of the CLB instance and resolve the domain name www.aliyun.com to 198.51.XX.XX. We recommend that you use an A record to resolve the domain name to the IP address.

Procedure

  1. Log on to the Alibaba Cloud DNS console.

  2. On the Domain Name Resolution page, click Add Domain Name.

  3. In the Add Domain Name dialog box, enter the domain name of your host and click OK.

  4. On the Domain Name Resolution page, find the domain name and click DNS Settings in the Actions column to go to the DNS Settings page.

  5. On the DNS Settings page, click Add DNS Record.

  6. In the Add DNS Record panel, configure the following parameters and click OK.

    Parameter

    Description

    Record Type

    Select A from the drop-down list.

    Hostname

    Enter the prefix of your domain name. In this example, WWW is selected.

    DNS Request Source

    Select Default.

    Record Value

    Enter the IP address of your website, which is the public IP address of the CLB instance.

    TTL

    Select a time-to-live (TTL) value for the A record to be cached on the DNS server. The default value is used in this example.

    Note
    • New A records immediately take effect. The time that is required for a modified A record to take effect is determined by the TTL value. The default value is 10 minutes.

    • If the A record that you want to create conflicts with an existing record, specify another domain name.