первый раз настраиваю днс и столкнулся с такой проблемой
при выполнении ndc reload в логах выдаются ошибки:
Oct 18 19:41:28 gw named[297]: afbgroup.ru:7: Database error near ()
Oct 18 19:41:28 gw named[297]: afbgroup.ru:8: Database error near ())
Oct 18 19:41:28 gw named[297]: afbgroup.ru:14: Database error near (localhost)
Oct 18 19:41:28 gw named[297]: afbgroup.ru:15: Database error near (ns1)
Oct 18 19:41:28 gw named[297]: afbgroup.ru:16: Database error near (ns2)
Oct 18 19:41:28 gw named[297]: afbgroup.ru:17: Database error near (mail)
Oct 18 19:41:28 gw named[297]: afbgroup.ru:18: Database error near (@)
Oct 18 19:41:28 gw named[297]: Zone "afbgroup.ru" (file afbgroup.ru): no SOA RR found
Oct 18 19:41:28 gw named[297]: master zone "afbgroup.ru" (IN) rejected due to errors (serial 0)
Oct 18 19:41:28 gw named[297]: Ready to answer queries.
мои файлы конфигурации
named.conf
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
zone "afbgroup.ru" {
type master;
file "afbgroup.ru";
};
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev";
};
afbgroup.ru
$TTL 3600
@ IN SOA ns1.afbgroup.ru. root.afbgroup.ru. (
20041018 ;serial
10800 ;refresh
3600 ;retry
604800 ;expire
86400 ) ;negative TTL
@ NS ns1.afbgroup.ru.
@ NS ns2.afbgroup.ru.
$ORIGIN afbgroup.ru.
localhost A 127.0.0.1
ns1 A 195.68.164.236
ns2 A 81.211.45.254
mail A 195.68.164.236
@ A 195.68.164.236
@ MX 10 mail.afbgroup.ru.