---
title: 'Setting up DNS hosting based on the VestaCP panel | Zomro'
description: 'In order to manage your domain''s DNS records, you need to direct (delegate) it to DNS servers that will return these records upon request from the Internet.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/09/01/1663901342_screenshot_118.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * Setting up DNS hosting based on the VestaCP panel 



# Setting up DNS hosting based on the VestaCP panel

18-09-2022

In order to manage your domain's DNS records, you need to direct (delegate) it to DNS servers that will return these records upon request from the Internet. This is done using NS records at the domain registrar.  
  
Zomro has a service designed to manage DNS records called DNS hosting. Its control panel has almost everything you need to host and manage domains. To use it, you need to specify our NSs, which you can find out by contacting technical support. Then it is enough to add the domain to the services panel and specify the IP address of the server to which the domain should point.  
  
But if for some reason you want to set up your own DNS servers to host domain records, you can do it on regular virtual or dedicated servers. This can be useful if you want sites or mail hosted on the same server to immediately become available in the DNS system. Next, it will be described how to do this with the VestaCP panel installed on the server.  
  
First you need to purchase a domain from a registrar that allows you to specify custom NSs. The format for entering NSs may differ from registrar to registrar. For example, some registrars need to specify as follows:
    
    
    ns1.domain.com/1.2.3.4
    ns2.domain.com/5.6.7.8

  
Please note that some registrars may have a requirement to have two different, separate NSs hosted on different IP addresses. But some may allow the setting to be applied if 2 NSs are directed to the same IP address. In the first case, you need 2 separate servers or a server with two IP addresses, in the second, one server with one IP is enough. This example shows a case where it is possible to host both NSs on the same server.  
  
Some registrars require that the specified subdomains already exist on the DNS server before applying this setting. In this case, follow the steps that will be discussed below and then specify the user NSs in the registrar panel.  
  
Next, you need to add the main domain (for example, domain.com), which will contain entries for NS subdomains, to the VestaCP panel. To do this, go to the DNS section and click on the plus sign (Add DNS Domain).

![Setting up DNS hosting based on the VestaCP panel - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/09/01/1663901342_screenshot_118.png)

  
In the page that opens, enter the name of the main domain.com domain and direct it to the server IP (in this example, 1.2.3.4). You can also open Advanced Options and specify nameservers for the domain (in this case, they do not affect the DNS system).

![Setting up DNS hosting based on the VestaCP panel - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/09/01/1663901743_screenshot_119.png)

  
Next, add type A DNS records for the ns1 and ns2 subdomains and point them to the corresponding DNS server IP addresses. To do this, open the list of domain records and click on the plus sign to add new records. As a result, entries will be added as shown in the screenshot. If the server has 2 IP addresses, you can direct these subdomains one to the first and other to the second IP.

![Setting up DNS hosting based on the VestaCP panel - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a44@server-panel.net/2022/09/01/1663902563_screenshot_120.png)

  
Wait for updates in the DNS system. It will take some time for all DNS servers to see the change. Usually this is from 30 minutes to 24 hours, and in some cases it can be up to 72 hours. To check if the required NSs are specified for the domain.com domain, you can use any available Whois service, for example, the one at <https://xseo.in/whois> .  
  
After that, your server will act as an authoritative DNS server for your domains. You can specify the NSs of your domain ns1.domain.com, ns2.domain.com for other domains and then add them to the DNS section of the configured server directed to this or other servers. If the sites will be hosted on this server, you can add its domain name not to the DNS section, but to the WEB section of the VestaCP panel, indicating that it should also be added to DNS and MAIL (you need to set the marks when creating the domain).

## Conclusion

A way to configure your own DNS server based on the VestaCP control panel was considered.

Similar articles:

[Adding a database to the VestaCP panel](https://zomro.com/blog/faq/387-adding-a-database-to-the-vestacp-panel) [How to get into phpMyAdmin from popular server control panels](https://zomro.com/blog/faq/389-in-this-article-we-will-look-at-how-to-use-phpmyadmin-to-importexport-databases-on-various-control-panels-such-as-ispmanager-cpanel-vestacp-and-hestiacp-how-to-get-into-phpmyadmin-from-popular-server) [Site transfer on servers with VestaCP panel](https://zomro.com/blog/faq/384-site-transfer-on-servers-with-vestacp-panel) [How to install Wordpress in Docker-Compose](https://zomro.com/blog/faq/376-how-to-install-wordpress-in-docker-compose) [Checking the baud rate using the iperf3 utility](https://zomro.com/blog/faq/338-proverka-skorosti-peredachi-dannyh-pri-pomoshi-utiliti-iperf3)

[ Forex Server from €7.95/mon ](/server-for-forex)
