Bind domain names

Last updated:2021-07-06 15:04:41

KS3 allows you to bind custom domain names to your buckets. In this way, you can access the objects in the buckets with the custom domain names and seamlessly migrate your data to KS3. This also avoids security issues of domain names. After a custom domain name is bound, you need to add a CNAME record to map the domain name to the public domain name of the bucket. In this way, you can access KS3 by using the domain name.

Note:

  • You must apply for an ICP filing from the Ministry of Industry and Information Technology (MIIT) of China for the custom domain name to be bound. Otherwise, the binding will fail.
  • You cannot bind a custom domain name to two or more buckets in the same region under the current account.
  • You can bind up to 50 domain names to a bucket.
  • A bucket can have up to 50 domain name binding records, including successful binding records and the records of failed binding due to no ICP filing, domain name conflict, or other reasons.
  • After a custom domain name is bound to a bucket, you do not need to enter the bucket name in the access URL when you access objects in the bucket by using the domain name.

For example, a user creates a bucket named mybucket in the China (Beijing) region and binds the custom domain name mydomain.com to the bucket.

Access URL before binding: mybucket.ks3-cn-beijing.ksyun.com/hello.jpg
Access URL after binding: mydomain.com/hello.jpg

The following URLs are incorrect:
mybucket.mydomain.com/hello.jpg
mydomain.com/mybucket/hello.jpg

Procedure

  1. Log in to the KS3 console and click Bucket in the left navigation pane.

  2. On the Bucket list page, click the name of the bucket to which you want to bind a domain name.

  3. On the page that appears, click Bucket Settings. On the Bucket Settings tab, click Domain Name Binding.

  4. Click Add domain name. In the dialog box that appears, enter the domain name to be bound and click OK.

Note:

  • If you do not apply for an ICP filing for the domain name, the binding will fail.
  • If the custom domain name has been bound to another bucket in the same region under the current account, you must unbind it first.
  • If the custom domain name has been bound to a bucket under another account, you must modify the TXT record of the domain name server to verify the domain name ownership, so as to unbind the domain name from the previous bucket and forcibly bind it to the current bucket. For more information, see [Verify the domain name ownership](#Verify the domain name ownership).
  1. After the domain name is bound to a bucket, add a CNAME record on your domain name server or the domain name server of the service provider and specify the public domain name of the bucket as the record value. In this way, all access requests to your custom domain name will be routed to the bucket in KS3.

Verify the domain name ownership

  1. If the domain name has been bound to a bucket under another account, an error is displayed, and the Get Random String button appears.

  2. Click the button. The randomly generated TXT record is displayed.

  3. Log in to the domain name server and add the corresponding TXT record.

  4. Click the ownership verification button in the console. In the dialog box that appears, click the Verify button. If the system detects that the TXT records of the domain name are consistent, the verification succeeds, and the domain name is unbound from the previous bucket and bound to the current bucket.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈