When you create your Hashnode blog, we provide a free yourdomain.hashnode.dev subdomain for you. However, you can set up your own yourdomain.tld domain or blog.yourdomain.tld subdomain for your Hashnode blog.

In this guide, you will learn how to accomplish this alongside some additional specific guides for different domain DNS providers.

1. Log in to your Hashnode account.

2. Click on your profile picture at the Hashnode header. Then, click on "My blog".

3. Go to Blog Dashboard from this menu.

4. Navigate to the "Domain" tab and enter your domain without the www or https:// prefix in the text field provided. Then click on the Update button to proceed.

Hashnode's Blog Domain Tab

5. If your DNS provider supports CNAME record, head over to your DNS provider and add a CNAME record where the hostname is @, and the corresponding value is hashnode.network. This CNAME record will point your domain or subdomain to Hashnode's IP address.

Hashnode CNAME

Using the CNAME record at the root level (e.g., yourdomain.tld) is not recommended unless your DNS provider supports CNAME flattening as this will affect your domain's MX records and email service.

6. If your DNS provider does not support CNAME flattening, add an A record at the root whose value is 76.76.21.21.

Hashnode A record

7. When your domain is mapped and ready, you will see three green icons as shown below:

Domain status

Here is how to set up a custom domain for your Hashnode blog using the most popular DNS providers:

- NameCheap guide

- Cloudflare guide

- GoDaddy guide


Still not sure if your DNS provider supports CNAME flattening or when to use CNAME or A record? Here is a quick summary to guide you:

  • If you are setting up your blog at the root level (e.g. yourdomain.tld), use A record.

  • If you are setting up your blog on a subdomain (e.g. blog.yourdomain.tld), use the CNAME record.

DNS Provider

Supports CNAME Flattening

Use CNAME Record (Root)

Use A Record (Root)

Namecheap

No

-

Cloudflare

Yes

-

GoDaddy

No

-

OpenDNS

No

-

Oracle Dyn Managed DNS

No

-

Cisco Umbrella

No

-

Amazon Route 53

No

-

Google Cloud DNS

No

-

Hostinger

No

IBM Domain Name Services (DNS)

Yes

-

Azure DNS

Yes

-

Did this answer your question?