After you build a website, you can access it directly with its public IP address. However, we recommend assigning a domain name to your website for better security and easier access. This topic describes how to register a domain name and point it to a Simple Application Server instance in the Simple Application Server console.
Procedure
(Optional) Step 1: Register a new domain name
If you already have a domain name, skip this step. This step shows how to register a new domain name in the Simple Application Server console. You can also register a domain name in the Alibaba Cloud Domain Name console. For more information, see Register a generic domain name.
-
Go to the Domain Name page in the Simple Application Server console.
You can also do this on the Domain Name tab on the instance details page.
-
Click Register New Domain Name. In the Register New Domain Name dialog box, enter a domain name and suffix, and then click Query.
NoteIf the domain name is already registered, you can select a recommended domain name or try a different domain name or suffix.
-
Click Register Now. Follow the on-screen instructions to select the subscription duration and a domain name information template, and then complete the purchase.
NoteIf you do not have a domain name information template, click Create and enter the registrant information. After the template is created, return to the current page and select the template. For more information, see Real-name verification for domain names.
-
Return to the Simple Application Server console. In the Check whether you complete the payment for the domain name registration order. dialog box, click Complete.
You can follow the on-screen instructions to add the domain name and a DNS record, or proceed to Step 2: Add and resolve a domain name.
Step 2: Add and resolve a domain name
Add a domain name to the Simple Application Server console for easy management. Then, add a DNS record to point the domain name to your Simple Application Server instance. This allows you to access the website deployed on the instance by using the domain name.
-
Go to the Domain Name page in the Simple Application Server console.
-
On the Domain Name page, click Add Domain Names.
-
In the Add Domain Names dialog box, follow the wizard to add a domain name and a DNS record.
-
Add a domain name.
Select or enter the domain name to add, and then click Next.
NoteYou can add a maximum of 10 domain names to a single Alibaba Cloud account.
-
Add a DNS record.
Configure the parameters as prompted and click Confirm to Add DNS Record.
Parameter
Description
Domain Name
The domain name that you added is displayed by default.
Host Record
Specifies the prefix of the domain name.
Record Type
An A record is selected by default. This record type points the domain name to an IPv4 address.
Select Simple Application Server
Select the target Simple Application Server instance.
NoteYou can filter Simple Application Server instances by region.
-
For a domain name registered with Alibaba Cloud, the system automatically adds the DNS record.
After the domain name and DNS record are added, you can continue to Configure HTTPS and upload a certificate to complete your domain name configuration, and then click OK.
-
For a domain name not registered with Alibaba Cloud, the system cannot add a DNS record directly.
-
At your domain name registrar, change the DNS server addresses of the domain name to the DNS server addresses assigned by Alibaba Cloud DNS. For more information, see Configure DNS records for a domain name registered with a provider other than Alibaba Cloud.
-
At your domain name registrar, add an A record to point the domain name to the public IP address of the instance.
-
-
-
Click the target domain name to go to its details page and view the resolution status.
If the Resolution Status of the domain name is Normal, the DNS record is in effect.
Related operations
After you add and resolve a domain name, you can also perform the following operations.
|
Actions |
Description |
Procedure |
|
Add a DNS record |
You can add a DNS record for a Simple Application Server instance to point a domain name to the public IP address of the instance. This allows you to access the website that is deployed on the instance by using the domain name. |
|
|
Modify a DNS record |
Modify the DNS record to change the host record or point the domain name to a new IP address. |
|
|
Delete a DNS record |
You can delete a DNS record if you no longer need it. After the DNS record is deleted, it is no longer in effect. Proceed with caution. Note
If you delete a DNS record in the Simple Application Server console, the system also deletes the corresponding record in the Alibaba Cloud DNS console. By default, the record becomes invalid after 10 minutes. |
|
|
Delete a domain name |
|
|
Related topics
You can configure HTTPS for your domain name to protect data in transit. For more information, see Manually deploy a certificate.