If you’re building a self-hosted website, you need to point your domain name to the public IP address of your web hosting.
If this step is not completed, when people type your website address into the address bar of the web browser and press the Enter key on their keyboard, they would not be able to open your website.
How to point your domain name to an IP address?
To point your domain name to the public IP address of your web hosting, you need to create an “A” record, which allows you to associate a host name with an IPv4 address.
Normally you just need to create one or two A records: One for the naked domain (e.g. supereasy.com); another for the “www” version of your domain (e.g. www.supereasy.com).
Here’s the step-by-step guide:
To do it, you can use the name servers from your domain name registrar. This post will use NameSilo’s name servers as an example to show you how to point your domain name to an IP address:
- Go to the official site of your domain name registrar (e.g. NameSilo.com). Then sign in with your account. Normally you’ll be asked to create an account before you register a domain name.
- After you signed in your nameSilo account, click domain manager on the right panel.
- In the window that pops up, click on your domain name to view the info about your domain in Domain Console. Then click the earth icon on the row that shows your domain name. You will open the Manage DNS page for that domain name.
- In the Manage DNS page, click A in the Add/Edit a Resource Record section to add an A record.
- For the first A record, leave the HOSTNAME column blank, and enter the public IP address to the IPV4 ADDRESS column. For the TTL part, just use the default value. Click SUBMIT to submit this A record to the name servers.
- For the second A record, enter www to the HOSTNAME column, and enter the public IP address to the IPV4 ADDRESS column. For the TTL column, just use the default value. Then click SUBMIT.
It may take up to 15 minutes to completely process. Once it is completed, you can visit your website by entering www.yourdomain.com or just yourdomain.com.