Domain mapping is a process that allows you to use a domain name on your website or web service on any hosting option such as cPanel Webhosting, Plesk Windows Hosting, Webhosting Plus, VPS, or Dedicated Server. It is generally done by updating the name servers on domain names to point to the server where you are hosting or planning to host your website.
Sometimes on self-managed servers and advanced hostings, the nameserver needs complex configurations to work, these settings might not be easy for general users. If adding custom name servers doesn’t work for you, you can set your domain name to work simply by editing its DNS zone.
In this case, you don’t need to edit or use custom name servers but make some changes in the DNS zone file and it will start working with default nameservers provided during the time of registration.
The first thing you need to do is log in to your VPS or Dedicated Server and copy its IP address which you will find on the My Products -> Servers -> Manage page. If you have a hosting, the IP address would be visible on the cPanel’s information page.
Once you have the IP address the next step is to log in to your domain account and click the ‘Manage‘ button to open up domain details.
Select the DNS Zone File tab to edit your domain’s zone information. Click the ‘Add Record‘ button present in the zone file section and add records as shown in the following screenshot.
- Hostname – www, record type – A address, ***.***.***.*** (IP)
- Hostname – @, record type – A Address, ***.***.***.*** (IP)
- Hostname – *, record type – A Address, ***.***.***.*** (IP)
Don’t forget to replace the ***.***.***.*** with your server’s IP address. You can add records one by one by clicking the ‘Add Another’ button. Once DNS records are added, save changes, log out, and wait for the DNS propagation.
DNS propagation refers to the process by which changes made to Domain Name System (DNS) records are distributed and adopted across the internet. When you make changes to your DNS records, such as updating the IP address associated with a domain or adding new records, these changes need to be propagated to DNS servers worldwide to ensure that internet users can reach your website or services using the updated information.
This might take up to 24 hours to complete but generally at Sangkrit.net, it starts working for you in a few minutes.