Even though your website can be directly accessed by using a public IP address upon building, we recommend that you configure a domain name for your website for security and convenience purposes. This topic describes how to bind and resolve a domain name on a simple application server.
Prerequisites
The domain name is registered with a domain name provider or Alibaba Cloud. For information about how to register a domain name with Alibaba Cloud, see Register a generic domain nameRegister a domain name on Alibaba Cloud.
An Internet Content Provider (ICP) filing is applied for the domain name. For information about how to apply for ICP filings in regions inside the Chinese mainland, see Overview.
Procedure
Log on to the Simple Application Server console.
In the left-side navigation pane, click Servers.
In the card of the desired simple application server, click the server ID.
Click the Domain Names tab. In the upper-left corner of the Website domain name page, click Add domain name.
Enter the domain name and click Next.
Resolve the domain name.
If the domain name is registered with Alibaba Cloud, click OK. The system automatically resolves the domain name.
You can also manually resolve the domain name. For more information, see Add website resolution.

If the domain name is not registered with Alibaba Cloud and has not been resolved by using Alibaba Cloud DNS, the system cannot directly resolve the domain name. In this case, you must use one of the following methods to resolve the domain name:

If the domain name is bound, a message that is similar to the following figure is displayed:

Enter the domain name in the browser to check whether the website is accessible.
If the website can be accessed by using the domain name, the domain name is resolved.
Related operations
After you add and resolve a domain name, you can perform the operations described in the following table based on your business requirements.
Operation | Description | Procedure |
Operation | Description | Procedure |
Delete a DNS record | If you no longer require a DNS record, you can delete the DNS record. A DNS record no longer takes effect after you delete it. Perform this operation with caution. Note When you delete a DNS record in the Simple Application Server console, the DNS record is also deleted from the DNS console. The DNS settings expire 10 minutes after the delete operation. | On the Domain Names page, find the domain name that you want to manage and click Delete DNS in the Actions column. In the dialog box that appears, click OK.
|
Resolve a domain name | You can resolve a deleted domain name. | In the Actions column of the domain name that you want to manage, click Resolve. In the dialog box that appears, click OK.
|
Delete a domain name | If you no longer require a domain name, you can delete a domain name. Deleted domain names are not managed in the Simple Application Server console. Note After you delete a domain name, the DNS record of the domain name is not deleted at the same time. You can delete the DNS record in the DNS console. For more information, see Pause or delete DNS records. | On the Domain Names page, find the domain name that you want to delete and click Delete in the Actions column. In the dialog box that appears, click OK.
|