I use CWP7 as the web panel of my VPS. I just tried to add a new account with a domain like demo.example.com but it seems something is wrong with its DNS records.
When I want to add the domain to CentOSFreeDNSManager I face this error:
zone demo.example.com/IN: loading from master file /var/named/demo.example.com failed: file not found
zone demo.example.com/IN: not loaded due to errors.
here are the records I added to the CeonOSFreeDNSManager.
However, the /var/named/demo.example.com file exists.
Also, I checked the domain by this command:
named-checkzone demo.example.com /var/named/demo.example.com
and the result is:
zone demo.example.com/IN: loaded serial 2013071600
OK
I already did this many times and the subdomain worked without any extra kinds of stuff.
Here is the zone records of the subdomain generated by the CWP7 automaticly:
; Generated by CWP
; Zone file for demo.example.com
$TTL 14400
demo.example.com. 86400 IN SOA ns1.centos-webpanel.com. behnamazimi.gmail.com. (
2013071600 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
demo.example.com. 86400 IN NS ns1.centos-webpanel.com.
demo.example.com. 86400 IN NS ns2.centos-webpanel.com.
demo.example.com. IN A 152.***.***.***
localhost.demo.example.com. IN A 127.0.0.1
demo.example.com. IN MX 0 demo.example.com.
mail IN CNAME demo.example.com.
www IN CNAME demo.example.com.
ftp IN CNAME demo.example.com.
; Add additional settings below this line
_dmarc 14400 IN TXT "v=DMARC1; p=none"