How to create your own DNS servers in the CentOS WebPanel control panel
If you want to add a domain (or subdomain) in the CentOS WebPanel
you did not yet need to add your domain to the DNS section in the Virtualizor panel,
then you need to configure your own DNS servers.
ns1.yourdomain.com
ns2.yourdomain.com
It is advisable for you to have 2 unique IP addresses for this.
But on some registrars everything can work with one IP.
How to do everything:
Go to the menu items:
- DNS Functions --> Edit NameServers IPs
Add here your subdomains that you want to use for NameServers and one IP for each nameserver, for example:
ns1.centos-webpanel.com --> 185.4.149.83
ns1.centos-webpanel.com --> 185.4.149.90
Your main domain or subdomains need to have an A record for that server's IP addresses.
How to set entries for nameservers:
- Create a new account on the server with the domain name you will use for nameservers (example: test.com)
- Edit the DNS zone for this domain, go to DNS Functions --> List DNS Zones and click on your domain.
- Add entries for your nameservers at the end of the file:
ns1 14400 IN IP NS1_SERVER
ns2 14400 IN NS2_SERVER IP
example:
ns1 14400 IN A 120.130.110.122
ns2 14400 IN A 120.130.110.123
this will create the nameservers: ns1.test.com and ns2.test.com