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 (93.189.92.200)
- ns2.clouding.io (93.189.93.200)
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.
Web Records
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 domain.com, we need to replace it with our domain, and where it says Public_Server_IP, we need to indicate the Public IP assigned to our server.
Email Records
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 domain.com, we need to replace it with our domain, and where it says Public_Server_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.