Site Settings

Why Connecting a Root Domain to Webflow is Difficult and the Benefits of Using Cloudflare

Daisuke K
Marketer

When using a custom domain with Webflow, particularly when attempting to set a "root domain (apex domain)" as the default, issues can arise due to DNS standard specifications and restrictions related to SSL certificate management.

Therefore, this article will explain why CNAME records are difficult to set for root domains, why direct connection from Squarespace to a Webflow root domain is not possible, and the benefits of utilizing a DNS provider like Cloudflare.

Why CNAME Records Cannot Be Set for Root Domains

Webflow specializes in website creation and does not directly provide advanced server or DNS management features. Therefore, connecting a root domain like "example.com" requires setting an A record in your DNS configuration. Webflow recommends configuring either an A record or CNAME flattening, depending on the capabilities of your DNS provider.

However, DNS standard specifications do not recommend setting CNAME records for root domains. Root domains require essential DNS information (such as SOA and NS records), and setting a CNAME record can conflict with these. Consequently, root domains are typically configured with static IP addresses using A records.

To circumvent this limitation, it becomes necessary to use external DNS management services like Cloudflare to convert CNAME records into A records, among other configurations. For these reasons, using external tools is virtually indispensable for connecting a root domain with Webflow.

https://help.webflow.com/hc/en-us/articles/33961368398099-Set-the-root-domain-as-the-default-domain-on-SSL-hosting

The Necessity of SSL Certificates and CNAME Flattening

To use a website, maintaining security, such as encrypting information, is crucial. Therefore, SSL certificates are used to encrypt communication between the website and the browser, preventing data eavesdropping and tampering.

Many hosting services, including Webflow, support dynamic hostname resolution via CNAME records for automatic SSL certificate issuance and renewal. For instance, instead of directly linking a domain name like "example.com" to an IP address, a CNAME record is used to link it to another domain name, such as "webflow.hosting.com".

This alternative domain name is managed by Webflow, ensuring that any changes in IP address are automatically handled, providing peace of mind.

However, since this method cannot be used for root domains, alternatives like "CNAME flattening" must be employed. CNAME flattening refers to a mechanism where the DNS provider internally resolves a CNAME record and ultimately returns an IP address for the root domain.

This allows root domains to behave like CNAMEs, enabling smooth SSL certificate management.

Unique Features Offered by Cloudflare, DNSimple, and Others

Each DNS provider offers unique mechanisms such as CNAME flattening, ANAME, and ALIAS.

プロバイダー CNAME
フラットニング
ALIAS
レコード
ANAME
レコード
備考・独自機能の特徴
Cloudflare × ×
  • ルートドメインにCNAME記述→自動でFlattening。
  • 高速なキャッシュやCDN統合が特徴。
DNSimple × ×
  • 明示的にALIASレコードを指定可能。
  • APIや自動化機能が充実。
DNS Made Easy × ×
  • 明示的にANAMEレコードを指定可能。
  • 高可用性・高速応答が強み。
ClouDNS × ×
  • ALIASレコードをサポート
  • 多機能・グローバルDNSネットワーク。
Namecheap × × ×
  • ルートドメインはA/AAAA、サブドメインはCNAMEのみ。
  • ALIAS等は未対応。

By using these providers, root domains can function similarly to CNAMEs, simplifying SSL connections and dynamic domain resolution across various hosting services, including Webflow.

We recommend Cloudflare.

About Cloudflare

However, some may find it difficult to choose the right DNS provider from those mentioned earlier. That's why Boos7 particularly recommends using "Cloudflare" for such individuals. Cloudflare's plans are powerful tools for facilitating Webflow root domain connections for individual developers and small websites. Here, we will introduce its reasons and benefits.

Benefits of Using Cloudflare

Let's immediately explore the benefits of utilizing Cloudflare's free plan.

Cloudflare無料プランのメリット

Unlimited DDoS Attack Protection

Protects your website from DDoS attacks (cyberattacks that send a massive volume of traffic to take down a website). Regardless of the scale or volume of the attack, you receive unlimited protection even with the free plan.

Global CDN

Utilizes a global network of servers to cache website data, improving page load speeds for users accessing your website.

Shared SSL Certificate

Provides free SSL certificates to encrypt communication between your website and users. While a shared SSL certificate displays Cloudflare's domain name, it still ensures your website's security.

Web Application Firewall (WAF)

Also includes features to defend against cyberattacks targeting web applications (such as SQL injection and cross-site scripting). WAF detects and blocks malicious access to your website, thereby enhancing security.

DNS

You can use Cloudflare's fast and reliable DNS service for free. Cloudflare's DNS, powered by globally distributed servers, provides fast and stable DNS responses, facilitating smooth access to your website.

Thus, using Cloudflare offers the attractive benefits of simplified domain management and improved performance and security.

Future Prospects of Cloudflare's Free Plan

Cloudflare is expected to continue offering its basic features for free in the future. However, as businesses grow, users seeking more advanced features and flexibility may consider upgrading to a paid plan. While the free plan is ideal for starting a website, it's wise to keep in mind the potential need to change plans as your business expands.

Frequently Asked Questions (FAQ)

Here, we've compiled a list of frequently asked questions and their answers. Please refer to this section if you have any questions about our products or services.

Q. Is the issue of setting CNAME records for root domains specific to Webflow?

A.
The prohibition of CNAME records for root domains is due to DNS standard specifications, and the requirements for automatic SSL certificate management are common challenges faced by many hosting platforms. Similar issues can arise not only with Webflow but also with other services like Squarespace, Wix, Shopify, and Netlify.

Q. Root domain vs. "www" subdomain: Which should be the main one?

A.
From a technical setup perspective, using "www" tends to make CNAME utilization easier and configuration simpler. On the other hand, from a branding and UX perspective, "non-www" gives a simpler impression. In any case, unifying your main domain to one or the other and redirecting from the alternative is advantageous for SEO.

Q. Why do only some providers, like Cloudflare and DNS Made Easy, offer CNAME-like functionality for root domains?

A.
Features like CNAME flattening, ANAME, and ALIAS are proprietary extensions not standardized in DNS. Implementing these requires special infrastructure and custom development on the provider's side, which is why not all providers support them.

Q. Is there a way to connect a Squarespace site to a Webflow root domain?

A.
While it's possible to connect by setting an A record on the Squarespace side to Webflow's IP address, this is not recommended as Webflow's IP address may change. This issue can be avoided by using a DNS provider like Cloudflare or by operating with the "www" subdomain as the default.

Q. What are the benefits of implementing Cloudflare?

A.
By using Cloudflare, you can expect multifaceted improvements such as:

  • Improved site loading speed through CDN
  • Enhanced security with DDoS protection and WAF
  • Easier root domain setup with CNAME flattening
  • Automatic issuance of free SSL certificates

Q. What can I do with Cloudflare's free plan? Is there a possibility it will become paid?

A.
Cloudflare has offered a free plan for many years, and many features are still available for free. Specifically, you can use CDN, SSL certificates, basic DDoS protection, CNAME flattening support, and DNS hosting. However, considering potential future changes, it is recommended to check the official website for the latest information.

Summary

The inability to set CNAME records for root domains in Webflow is due to restrictions imposed by DNS standard specifications. To properly manage SSL, CNAME flattening or ANAME/ALIAS functionality is required. To resolve this issue, implementing Cloudflare is highly recommended. Cloudflare supports CNAME flattening and offers numerous benefits, including CDN features to improve site loading speed, enhanced security, and free SSL certificates.

If you wish to use Webflow with a root domain and establish an SSL connection, we highly recommend considering a compatible DNS provider like Cloudflare or DNSimple. If you have any difficulties or questions, please feel free to contact us.

Give your website a boost.

Booost is a web development service specializing in the no-code tool "Webflow."
We maximize your website's customer acquisition power through three optimizations: design, marketing, and translation.

Supervised by
Daisuke K
Marketer
He joined IGNITE as CMO in 2021. Bringing prior experience in the marketing industry, he is now developing marketing strategies for international markets at IGNITE. He oversees B2B and B2C projects from various countries and regions, providing support to Japanese companies looking to expand overseas, as well as foreign companies aiming to enter the Japanese market.