All Products
Search
Document Center

Simple Application Server:Register and resolve a domain name

Last Updated:Jun 20, 2026

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.

  1. 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.

    The first time you use the domain name feature, you must authorize the Simple Application Server service.

    In the Tips dialog box, click OK to authorize the service.

    After you grant the authorization, the system automatically creates a service-linked role named AliyunServiceRoleForSwas and attaches the AliyunServiceRolePolicyForSwas policy to the role. This allows the service to access your domain name and DNS record lists.

  2. Click Register New Domain Name. In the Register New Domain Name dialog box, enter a domain name and suffix, and then click Query.

    Note

    If the domain name is already registered, you can select a recommended domain name or try a different domain name or suffix.

  3. Click Register Now. Follow the on-screen instructions to select the subscription duration and a domain name information template, and then complete the purchase.

    Note

    If 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.

  4. 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.

  1. Go to the Domain Name page in the Simple Application Server console.

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

  3. In the Add Domain Names dialog box, follow the wizard to add a domain name and a DNS record.

    1. Add a domain name.

      Select or enter the domain name to add, and then click Next.

      Note

      You can add a maximum of 10 domain names to a single Alibaba Cloud account.

    2. 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.

      Note

      You 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.

  4. 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.

  1. In the Actions column of the target domain name, click Add DNS Record.

  2. In the Add DNS Record dialog box that appears, add the DNS record. For more information, see Add a DNS record.

  3. Click OK.

Modify a DNS record

Modify the DNS record to change the host record or point the domain name to a new IP address.

  1. In the Actions column of the target domain name, click View Details.

  2. In the Actions column of the target host record, click Modify Domain Resolution.

  3. In the Modify Domain Resolution dialog box that appears, modify the host record or select another Simple Application Server instance, and then click OK.

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.

  1. In the Actions column of the target domain name, click Delete DNS Record.

  2. In the dialog box that appears, click OK.

Delete a domain name

  • After you delete a domain name, you can no longer manage it in the Simple Application Server console. However, the domain name is not deleted from the Domain Name console.

  • Before deleting a domain name, you must first delete all its associated DNS records. Otherwise, the domain name cannot be deleted.

  1. In the Actions column of the target domain name, click Delete.

  2. In the dialog box that appears, click Remove.

Related topics

You can configure HTTPS for your domain name to protect data in transit. For more information, see Manually deploy a certificate.