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 domain name on Alibaba CloudHow to register 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 an A record to a website domain.
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:
Use Alibaba Cloud DNS to resolve the domain name. For more information, see How do I configure DNS settings for a domain name that is registered with a third-party DNS service provider?
Contact the domain name service provider, create an A record for the domain name, point the domain name to the IP address of the simple application server, and then bind 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 |
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. |
|
Resolve a domain name | You can resolve a deleted domain name. |
|
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. |
|
References
If you want to enable HTTPS-encrypted access for a domain name to ensure data transfer security by using encrypted transmission and identity authentication technologies, see the following topics: