When we create a new server and point a domain to it, it is necessary to create the DNS zone for our services to function correctly.
To have the DNS zone in the Clouding panel, it is first necessary for our domain to have the Clouding NS - "Name Server" in English - which means "Servidores de Nombre" in Spanish:
- ns1.clouding.io (126.96.36.199)
- ns2.clouding.io (188.8.131.52)
This should be configured where you registered the domain. Once configured, you can check which NS your domain has. We usually use a service called intoDNS to check the NS of domains. It should appear as follows:
Once we have this configured, we will need to add the domain in the DNS tab of the Clouding panel. Once added, we will need to click on the domain to enter the Domain DNS Zone and create the necessary records.
Adding records in the DNS Zone is quite simple. We have a tutorial that explains how to add records in the DNS Zone, which you can refer to. However, in this tutorial, we will explain what records we need to add.
To have a domain load a website, whether it's Apache or Nginx, we need to create the following records:
We need to keep in mind that where it says example.com, we need to replace it with our domain, and where it says Point to, we need to indicate the Public IP assigned to our server.
If we have email service on our server, we need to create the following records for it to work correctly:
We need to keep in mind that where it says example.com, we need to replace it with our domain, and where it says Server_Public_IP, we need to indicate the Public IP assigned to our server. If we look at the TXT record, we need to change Public_IP to the Public IP of our server.