a. Here are the outputs of the commands:
[root@vps196134 ~]# yum list installed | grep bind
bind.x86_64 32:9.9.4-61.el7 @base
bind-libs.x86_64 32:9.9.4-61.el7 @base
bind-libs-lite.x86_64 32:9.9.4-61.el7 @base
bind-license.noarch 32:9.9.4-61.el7 @base
bind-utils.x86_64 32:9.9.4-61.el7 @base
[root@vps196134 ~]# serivce named restart
-bash: serivce: command not found
b. And here the DNS config I did in CWP panel:
$TTL 38400
@ IN SOA ns1.mydomain.com. admin.mydomain.com. (
20170922110026 ; serial
90M ; refresh
15M ; retry
14D ; expire
3600 ; default_ttl
)
mydomain.com. 14400 IN NS ns1.mydomain.com.
mydomain.com. 14400 IN NS ns2.mydomain.com.
ns1 14400 IN A xxx.xxx.xxx.xxx
ns2 14400 IN A xxx.xxx.xxx.xxx
mydomain.com. 14400 IN A xxx.xxx.xxx.xxx
localhost 14400 IN A 127.0.0.1
mydomain.com. 14400 IN MX 0 mydomain.com.
server IN A xxx.xxx.xxx.xxx
www IN A xxx.xxx.xxx.xxx
mydomain.com. IN TXT "v=spf1 a mx ptr a:mydomain.com ip4:xxx.xxx.xxx.xxx ?all"
_adsp._domainkey.mydomain.com. IN TXT "dkim=all"
_domainkey.mydomain.com. IN TXT "o=~; r=abuse@mydomain.com"
_dmarc.mydomain.com. IN TXT "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"
default._domainkey IN TXT ( "v=DKIM1; k=rsa; "
"p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCCRwGE8OCQk/skzSse3837B4/PLCtW6FfYESiyFshpKlF8bOGl7MfpKXibbTfBdur0puNmGOPhSSPxzEsnHjmYp7xHErzgYVd/Wgqp9HdyQRBfqyVJXmSbhuhjFe7zCYyrp4gZY1maDa5T6p8nIj/acuXrmgJNLOeAcbW7RjS8EQIDAQAB" ) ; ----- DKIM key default for mydomain.com
nh4rtd9f IN CNAME
www.mydomain.com.
Cheers