Updated on 2025-12-05 GMT+08:00

Connecting to an Instance Using a Private Domain Name

A private domain name is a domain name that takes effect in a VPC. Domain Name Service (DNS) associates private domain names with private IP addresses and translates domain name for Huawei Cloud services within a VPC. For more information about private domain names, see Private Domain Name.

You can use DNS to translate a common domain name (for example, example.com) into a private IP address (for example, 192.168.1.1), which is used to access the GeminiDB Redis instance.

This section uses Linux as an example to describe how to connect to a GeminiDB Redis instance using the private domain name configured by DNS.

Usage Notes

  • The target instance and ECS must be in the same VPC and subnet.
  • The instance security group must allow access from the ECS.

    Scenario 1: If the instance is associated with the default security group, you do not need to configure security group rules.

    Scenario 2: If the instance is not associated with the default security group, check whether the security group rules allow the ECS to connect to the instance.

Prerequisites

Procedure