Updated on 2024-12-03 GMT+08:00

Adding a Domain Name

When you deploy a website on a FlexusL instance, you need to add a domain name for the instance.

Constraints

A domain name that is not registered can be added. After the domain name is added, it must be registered and licensed. If it is not registered and licensed, the website cannot be accessed. To ensure that a domain name can be used normally, register the domain name and complete ICP licensing before adding the domain name.

If the domain name is not licensed, apply for ICP licensing using Huawei Cloud ICP License Service, which provides free ICP licensing. For details, see ICP Filing Process.

Procedure

  1. Log in to the FlexusL console and click a resource card to go to the instance details page.
  2. In the navigation pane on the left, choose Cloud Servers. Locate the server and click its name.
  3. On the Domain Names tab, click Add Domain Name.

  4. Configure the parameters and click OK.

    Parameter

    Setting

    Domain Name

    Enter a domain name that will be added for the instance, for example, wpwebsite.com.

    NOTE:

    A domain name that is not registered can be added. After the domain name is added, it must be registered and licensed. To ensure that a domain name can be used normally, register the domain name and complete ICP licensing before adding the domain name.

    Enterprise Project

    Select an enterprise project from the drop-down list.

    Enterprise projects are associated with public zones. You can manage public zones by enterprise project.

    NOTE:

    This parameter is displayed only when your account is an enterprise account.

  5. On the Domain Names tab, view the added domain name.

    To enable your website to be accessed using the domain name, you need to configure DNS for it by performing Resolving a Domain Name.

Related Operations

After a domain name is added, if you want to change the domain name or do not want to use the domain name any longer, you can click Remove in the Operation column to unbind the domain name from the instance.

Removing a domain name will also delete the record sets configured for the domain name. As a result, the domain name cannot be used to access the website. If you add the domain name again, you need to configure DNS resolution for it again.