Menu

Domain Preparation and Resolution

Domains are not required for local development, but completing this configuration allows you to use domain email addresses for subsequent third-party service integrations.

Purchasing a Domain

There are many domain purchasing platforms, but I recommend the following ones:

PlatformAdvantages
NamesiloReasonable pricing, free WHOIS privacy protection
PorkbunLow prices, free WHOIS privacy protection
CloudflareLow prices, free WHOIS privacy protection, seamless integration with other Cloudflare services
NamecheapCheapest prices

You can also use the following platforms for price comparison and checking domain availability:

Configuring Domain Resolution

After purchasing a domain, I recommend completing domain resolution with Cloudflare. This is because Cloudflare has a global DNS network, so when users visit your website, they will receive content from the server closest to them, reducing latency, speeding up loading times, and improving user experience. Additionally, Cloudflare's free plan provides essential features like automatic SSL certificate configuration.

Next, I'll introduce the steps for adding a domain to Cloudflare and configuring resolution.

Adding a Domain to Cloudflare

  1. Log into the Cloudflare official website and add your domain
Cloudflare add domain
  1. Enter your domain name
Cloudflare add domain
  1. Select the free plan
Cloudflare select plan
  1. The next step will show instructions to modify your domain's nameserver
replace nameserver

Using my domain purchased from Namesilo as an example, I need to modify the domain nameserver in the Namesilo dashboard

replace nameserver
  1. Then you can see the domain status on Cloudflare's DNS page, showing Active means the addition was successful
Cloudflare dns