Use original URL on Netlify

If you don't set custom domain, the URL will be something like https://amazing-nobel-819f94.netlify.app. You can use original domain name. I am going to tell you how to do it.

First of all, you need to buy a domain name. I found a clouple of sites for buying domain.

Of course, you can buy a domain in the other web site.

Adding custom domain to Netlify

domain-management

Click Add custom domain.

adding

Click verify. If you can use the domain, it will be passed.

custom-domain-list

If you click Check DNS configuration, you can see the below dialog.

register-rr

You need to set Primary domain and Redirects automatically to primary domain both.

How to set DNS record?

You should check a website where you bought your domain. You should be able to register A/CNAME records there. If you are not sure, you should ask to the company.

Let's check dig command

After registering A/CNAME records, you can check if the registeration is done by dig command.

dig please-enter-your-domain-name

Since DNS takes a time to spread records to all around the world, it might take a time.

Also, you can check by DNS Propagation Check. Please wait for a while. It might take a day or more. After that, you should be able to see your website by your original URL.


Written by Yasuhiro Ito
Software engineer

© 2021, Yasuhiro Ito