To set up a domain name, there are a couple of steps to do. First, you need to purchase a domain name from a domain name registrar. Second, you need to set up DNS records for your domain by using a DNS hosting service.
Let's do these one by one.
⏳ Prerequisite - A domain name from a domain registrar
⌛Set up DNS records for your domain
Let's say you have purchased a domain called www.abcde.com from GoDaddy. I am using GoDaddy as the domain name provider and using its DNS hosting service.
The admin interface of all the domain name providers might be different once you login, but the steps will be the similar.
- Login to Godaddy, and move on to My Products section.
- Click on DNS tab present at the extreme right of your domain.
- Once a new page Record opens, click on the edit icon (pencil icon) at the right of the Type A record.
- Put your static ip ( say a dummy ip 18.104.22.168 ) without https or http or slash in the "Points to" section (highlighted in yellow in the image below), and Save it.