Updated on 2023-11-27 GMT+08:00

Changing a Private Domain Name

You can connect to RDS DB instances through private domain names.

Constraints

  • Changing the private domain name will interrupt your database connection. To reconnect to the instance, change the connection address of your applications. The new private domain name is applied to the instance about 5 minutes after the change.
  • If your DB instance is connected through a private domain name, changing its floating IP address does not interrupt services.

Procedure

When you buy a DB instance, the system automatically assigns a private domain name to your instance.

After the DB instance is created, you can change the private domain name as needed.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, click the target DB instance.
  5. In the Connection Information area on the Basic Information page, click Change next to the Private Domain Name field.

    Alternatively, in the navigation pane on the left, choose Connectivity & Security. In the Connection Information area, click Change next to the Private Domain Name field.

  6. In the displayed dialog box, enter a new domain name and click Yes.

    • Only the prefix of a private domain name can be modified.
    • The prefix of a private domain name contains 8 to 63 characters, and can include only letters and digits.
    • The new private domain name must be different from existing ones.

  7. If you have enabled operation protection, click Send Code in the displayed Identity Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication improves the security of your account and cloud product. For details about how to enable operation protection, see Identity and Access Management User Guide.