Onboard domain Onboard a domain
Hướng dẫn chi tiết đồng bộ từ docs Cloudflare — mỗi section có backlink tới đúng vị trí trên trang gốc. Detailed guide synced from Cloudflare docs — each section links to the matching anchor on the official page.
← Danh mục ← CatalogGiải thích nhanh Quick context
Tutorial đa lĩnh vực — kết hợp nhiều sản phẩm Cloudflare. Tutorial «Onboard domain» giúp bạn làm quen luồng triển khai thật — phù hợp đọc trước khi mở tài liệu gốc tiếng Anh. Docs gốc chia khoảng 4 bước chính; bản tóm tắt dưới đây giúp bạn nắm khung trước khi làm theo từng lệnh.
Learn how to onboard your domain to Cloudflare, to speed up and protect your website or application.
Lưu ý trước khi làm Notes before you start
- Đây là bản tóm tắt trên Orange Cloud Learning Hub — không thay thế tài liệu chính thức.
- Luôn mở liên kết «Tài liệu gốc» bên dưới khi cần lệnh CLI, snippet code và ảnh minh họa đầy đủ.
- Docs Cloudflare cập nhật thường xuyên — đối chiếu ngày «Rà soát lần cuối» trên trang gốc khi triển khai production.
Tổng quan Overview
Phần «Tổng quan» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
After you onboard your domain, Cloudflare will act as the reverse proxy and DNS provider for your site.
This guide applies to existing domains that were purchased from another provider, and will use a full DNS setup, which is the most common configuration. To set this up, you will have to complete a few steps at Cloudflare, but also update some settings at your domain registrar1, and at your previous DNS provider (if you were using one).
Cloudflare Registrar
If you need a new domain, you can buy one from Cloudflare without markup fees. We will complete the rest of this setup for you.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
1. Thêm your domain 1. Add your domain
Phần «Thêm your domain» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
- Log in to the Cloudflare dashboard.
- Select Onboard a domain.
- Enter your website's apex domain (for example,
example.com), choose how you would like to add your DNS records, and select Continue.
Note If Cloudflare is unable to identify your domain as a registered domain, make sure you are using an existing top-level domain ↗ (.com, .net, .biz, or others). Cloudflare requires your apex domain to be one level below a valid TLD defined in the Public Suffix List (PSL) ↗. For instance, example.com is valid but level2.example.com2 or example.home are not.
- Select a plan ↗.
2. Review DNS records 2. Review DNS records
Phần «Review DNS records» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Your DNS records must be accurate for your domain to work properly. If you don't know what DNS records are, consider the video below for a quick explanation.
- Since the quick scan is not guaranteed to find all existing DNS records, you need to review your records, paying special attention to the following:
Zone apex records (example.com) More about zone apex records Zone apex refers to the domain or subdomain that you are adding to Cloudflare. Usually, the zone apex record makes your domain accessible by visitors. In this case, the necessary record type (A, AAAA, or CNAME) and its content will depend on the provider that hosts your website or application. If you are using Cloudflare Workers, refer to Custom domains. If you are using other providers, look for their guidance on how to connect domains managed on external DNS services. Then, make sure you have the records required by your hosting provider on your DNS records table at Cloudflare. Subdomain records (www.example.com or blog.example.com) More about subdomain records Most subdomains serve a specific purpose within the overall context of your website. For example, blog.example.com might be your blog, support.example.com could be your customer help portal, and store.example.com would be your e-commerce site. Even if you do not require specific subdomains, you might want to set up at least a subdomain record on www. It will usually point to the same content as what you have on the apex domain (example.com) or use a redirect. Having a subdomain DNS record on www helps guarantee that a visitor who types www. in front of your domain address can still find your website or application. Email records More about email records Depending on your business needs, you can configure DNS records so that you can use your domain to receive emails, receive and send emails from your domain, or prevent others from sending emails on your behalf (spoofing). Below are some examples of what those DNS records might look like. The exact values for your DNS mail records depend on your email provider. If you have issues, review the Troubleshooting and contact your email service provider to confirm your DNS records are correct. | Type | Name | Content | Proxy status | TTL | | ---- | -------------- | ----------------------------- | ------------ | ---- | | A | mail | 192.0.2.1 | DNS Only | Auto | | MX | example.com | 5 john.mx.example-server.test | DNS Only | Auto | | TXT | \dmarc | "v=DMARC1; p=reject; sp=... | DNS Only | Auto | | TXT | \.\domainkey | "v=DKIM1; k=rsa; p=..." | DNS Only | Auto | | TXT | example.com | "v=spf1 ip4:..." | DNS Only | Auto | Note If you activate your domain on Cloudflare without setting up the correct DNS records for your domain, your visitors may experience DNS\PROBE\FINISHED\_NXDOMAIN errors.
- If you find any missing records, manually add those records.
- Depending on your site setup, you may want to adjust the proxy status for certain
A,AAAA, orCNAMErecords. Each record has a proxy status toggle:
Proxied (orange cloud): web traffic goes through the Cloudflare network, which provides caching, DDoS protection, and other security features. DNS only (gray cloud): Cloudflare returns the DNS record value but does not proxy traffic. Use this for CNAME records that verify your domain for third-party services.
- Select Continue.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
3. Cập nhật nameservers 3. Update nameservers
Phần «Cập nhật nameservers» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Your domain will be assigned two authoritative Cloudflare nameservers. Nameservers are specialized servers that store your domain's DNS records and "answer" requests from browsers by providing the specific IP address needed to connect to your website.
Usually, you need to add these nameservers at your registrar. Refer to Update nameservers for more information.
Provider-specific instructions
This is not an exhaustive list of provider-specific instructions, but the following links may be helpful:
- Ionos ↗
- 101Domain ↗
- Amazon ↗
- Blacknight ↗
- BlueHost ↗
- DirectNIC ↗
- DNSMadeEasy ↗
- Domain.com ↗
- Dotster ↗
- DreamHost ↗
- EasyDNS ↗
- Enom ↗
- Fast Domain ↗
- FlokiNET ↗
- Gandi ↗
- GoDaddy ↗
- HostGator ↗
- Hostico ↗
- HostMonster ↗
- Hover ↗
- Internetdbs ↗
- iPage ↗
- MelbourneIT ↗
- Moniker ↗
- Name.com ↗
- Namecheap ↗
- Network Solutions ↗
- OVH ↗
- Porkbun ↗
- Rackspace ↗
- Register ↗
- Squarespace ↗
- Site5 ↗
- Softlayer ↗
- Yola ↗
DNSSEC
If your domain uses DNSSEC, you must turn it off at your registrar before changing nameservers. Changing nameservers while DNSSEC is active can cause your domain to become unreachable. You can re-enable DNSSEC through Cloudflare after your domain is active.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
4. Complete SSL/TLS setup 4. Complete SSL/TLS setup
Phần «Complete SSL/TLS setup» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
To prevent insecure connections and visitor browser errors, review your SSL/TLS certificates. Many Cloudflare services will automatically protect and speed up your web traffic after your nameservers are updated and your DNS records are proxied. For further guidance, refer to Proxy status.
If you encounter unexpected results when changing your nameservers, refer to the DNS Full Setup troubleshooting.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
Other DNS setups Other DNS setups
Phần «Other DNS setups» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
- To use Cloudflare as a reverse proxy but maintain your DNS provider, refer to partial setup.
- To use one or more DNS providers, refer to DNS Zone transfers.
- Enterprise customers can onboard lower-level subdomains using Subdomain setup.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
Minimize downtime Minimize downtime
Phần «Minimize downtime» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
- If your domain is particularly sensitive to downtime, review our suggestions to minimize downtime.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
Footnotes Footnotes
Phần «Footnotes» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
- The provider you purchased your domain from ↩
- Enterprise customers can onboard these using Subdomain setup. ↩
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/fundamentals/","name":"Cloudflare Fundamentals"}},{"@type":"ListItem","position":3,"item":{"@id":"/fundamentals/manage-domains/","name":"Domains"}},{"@type":"ListItem","position":4,"item":{"@id":"/fundamentals/manage-domains/add-site/","name":"Onboard a domain"}}]} Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
Xem bản đầy đủ trên developers.cloudflare.com (ảnh, tab cấu hình). View the full guide on developers.cloudflare.com (images, config tabs).
Tài liệu gốc ↗ Official docs ↗