It's required that you have installed CentOS WebPanel and 2 IP addresses.
Settings
- DNS Functions --> Edit NameServers IPs
Add here your subdomains you want to use for NameServers and one IP for each nameserver eg.
ns1.centos-webpanel.com --> 185.4.149.83
ns1.centos-webpanel.com --> 185.4.149.90
- Your Main Domain or Subdomains need's to have A record to this server IPs
How to set A Records for Name Servers
1. Create new account on the server with domain name which you will use for nameservers (example: test.com)
2. Edit DNS zone for this domain go to DNS Functions --> List DNS Zones and click on your domain
3. Add records for your nameservers at end of the file:
ns1 14400 IN A NS1_SERVER IP
ns2 14400 IN A NS2_SERVER IP
example:
ns1 14400 IN A 120.130.110.122
ns2 14400 IN A 120.130.110.123
this will create nameservers: ns1.test.com and ns2.test.com
- Setup Shared IP
WebPanel Settings --> WebPanel Settings --> Shared IP
CASE 1
If you have only A record for main domain set to one IP than you need to make new account on this server and add in DNS records subdomains.
CASE 2
If you have at yours domain register set domain records for each subdomain to IP than you are ready to go and you can start adding DNS zones or creating accounts.
Changing DNS records can take up to 24 hours.
For some domain registers you will need to have your server hostname to have A record to NS1 IP:
eg. myhostname.centos-webpanel.com --> 185.4.149.83
START DNS (BIND) server
go to Service Config --> Chkconfig manager and click "ON" for named service.
now go to index page and start BIND DNS Server by clicking Start
Don't forget that the nameservers must be registered with your domain registrar.
Godaddy Instructions
https://support.godaddy.com/help/article/12317/setting-custom-nameservers-for-domains-registered-with-us?locale=en
Enom Instructions
http://www.enom.com/help/faq_dns.asp
hi, after a few months, i restart my server and now i have this problem:
BIND DNS SERVER is with red and if i pres start i have this message:
Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone ns1.stiriexacte.ro/IN: loaded serial 2013071600
zone ns2.stiriexacte.ro/IN: loaded serial 2013071600
zone stiriexacte.ro/IN: NS 'ns1.stiriexacte.ro' has no address records (A or AAAA)
zone stiriexacte.ro/IN: NS 'ns2.stiriexacte.ro' has no address records (A or AAAA)
zone stiriexacte.ro/IN: not loaded due to errors.
_default/stiriexacte.ro/IN: bad zone
zone deblocari-usi-metal.ro/IN: loaded serial 2013071600
zone deblocareusa.ro/IN: loaded serial 2013071600
zone deblocariusi.tk/IN: loaded serial 2013071600
zone eternity-roleplay.com/IN: loaded serial 2013071600
zone 1gags.com/IN: loaded serial 2013071600
zone 4fun.gq/IN: loaded serial 2013071600
zone 4fun.ml/IN: loaded serial 2013071600
zone 24bet.ml/IN: loaded serial 2013071600
zone 123up.ga/IN: loaded serial 2013071600
zone dcnews.ga/IN: loaded serial 2013071600
zone gamep.ga/IN: loaded serial 2013071600
zone imgshare.ga/IN: loaded serial 2013071600
zone lapescuit.ga/IN: loaded serial 2013071600
zone mediafax.ga/IN: loaded serial 2013071600
zone newsgames.tk/IN: loaded serial 2013071600
zone repapc.tk/IN: loaded serial 2013071600
zone seoboost.ga/IN: loaded serial 2013071600
zone superfilme.tk/IN: loaded serial 2013071600
zone la-rp.ro/IN: loaded serial 2013071600
[FAILED]
Pls help me coz is not first time when it happen and each time i instal the pannel again, why coz until this restart it work good ?