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
Log on to the Alibaba Cloud DNS console.
On the Domain Name Resolution page, click Add Domain Name.
In the Add Domain Name dialog box, enter the domain name of your host and click OK.
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.
On the DNS Settings page, click Add DNS Record.
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.
NoteNew 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.