When a client initiates a request, the Cloud Load Balancer forwards the request to the backend server according to the configured listener forwarding rules. The domain name in the listener forwarding rules is the domain name used by your backend service. This document explains how to configure a domain name.
Directions
Step 1: Register a Domain Name
Domain registration is the foundation of establishing services on the Internet.
If you already have your own domain name with another registrar, you can transfer the domain name to Tencent Cloud Domain Services. For details, please see Domain Transfer In. If you do not have a domain name yet, you need to register a domain name. For details, please see Domain Registration. Step 2: Add Domain Name Resolution
2. In My Domains, click the domain name that requires CNAME record forwarding to enter its Record Management page. As shown below:
3. Click Add Records and fill in the following record information. As shown below:
Host: fill in a subdomain. For example, when adding a record for www.dnspod.com, you can simply select www in the Host field. If you only want to add a record for dnspod.com, select @ in the Host field. The @ CNAME record will affect the normal resolution of MX records, please add it with caution.
Type: select CNAME.
Split Zone: select Default, otherwise some users may not be able to resolve it.
For example, if you want to point China Unicom users to 2.com and all other users to 1.com. You can implement this by adding two CNAME records, one with the split zone Default and record value 1.com, and the other with the split zone China Unicom and record value 2.com.
Value: you can only fill in a domain name pointed to by the CNAME.
Weight: a split zone with identical hosts. It can be set for different record values, and the resolved content will be returned according to the set weight ratio during DNS resolution. Enter an integer between 0 and 100.
MX: leave it empty.
TTL: cache time. The smaller the value, the faster the modification record will take effect in various regions. Default: 600s.
4. Click Confirm.
Step 3: Verify the Resolution Result
Note:
Resolution will take effect in about 10 minutes.
After completing the above steps, you can enter the CNAME domain (such as www.example.com
) in the browser to test if the domain resolves correctly.
Was this page helpful?