Menu

Domain Preparation and Configuration

In local development, a domain is not mandatory, but as the starting point of your project, I still recommend completing this step first.

Purchase a Domain

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

PlatformAdvantages
NamesiloReasonable pricing, free WHOIS privacy protection
PorkbunAffordable pricing, free WHOIS privacy protection
CloudflareCompetitive pricing, seamless integration with other CloudFlare features
NamecheapBudget-friendly pricing

You can also use the following platforms to compare prices and check domain availability:

Configure Domain Resolution

After purchasing a domain from any platform, you can proceed with domain resolution configuration.

Domain resolution is strongly recommended to be configured through CloudFlare. CloudFlare has a global DNS network, so when users access your website, they get content from the nearest server, reducing latency, speeding up load times, and improving user experience. Additionally, CloudFlare's free plan provides essential features like automatic SSL certificate configuration.

Let me walk you through the steps to add and configure your domain in CloudFlare.

Add Domain to CloudFlare

  1. Log in to CloudFlare website, click "Add a Domain"

CloudFlare add domain

  1. Enter your domain name, click "Continue"

CloudFlare add domain

  1. Select the "Free" plan

CloudFlare select plan

  1. The next step will show instructions to change your domain's nameserver

replace nameserver

For example, with my domain purchased from Namesilo, I need to change the domain nameserver in the Namesilo backend

replace nameserver

  1. Then you can see the domain status on CloudFlare's DNS page. When it shows "Active", the addition is successful

CloudFlare dns

You don't need to modify DNS records yet. The documentation will provide instructions wherever DNS records need to be added in the following steps.

Configure Domain Email

Having a dedicated domain email is crucial for demonstrating business professionalism. Compared to generic personal email addresses, domain emails effectively build user trust.

Fortunately, Cloudflare's free plan includes email routing functionality, making this easy to achieve. This feature can automatically forward emails sent to your domain email (e.g., [email protected]) to your designated existing email (e.g., [email protected]).

Configuration steps:

Log in to CloudFlare website, click "Email", and follow the guided steps on the page

CloudFlare email

CloudFlare email

CloudFlare email

CloudFlare email

CloudFlare email

When the displayed status shows success, you can test it by sending an email from any email address to your domain email, to verify if your designated email receives it.

Conclusion

With this, our domain preparation and resolution configuration is complete.

In the next article, we'll begin integrating other platforms.