학습 목적으로 RHEL 5에서 DNS를 구성하려고 합니다.
DNS가 작동하도록 정방향 영역, 역방향 영역 및 파일을 설정했지만 named.conf
실행하면 service named start
다음 오류가 발생합니다.
운영 체제: RHEL 5
제가 사용하는 IP는 172.168.190.1...172.168.190.50 입니다.
내 /etc/named.conf
파일은 다음과 같습니다.
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
listen-on port 53 {any; };
};
zone "oracleexpert.com" IN {
type master;
file "oracleexpert.com.fwd.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.fwd.zone";
allow-update { none; };
};
zone "190.168.172.in-addr.arpa." IN {
type master;
file "172.168.190.rev.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa." IN {
type master;
file "localhost.rev.zone";
allow-update { none; };
};
zone "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 {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa." IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa." IN {
type master;
file "named.zero";
allow-update { none; };
};
include "/etc/rndc.key";
50,19 Bot
출력은 다음과 같습니다 sed -n l /etc/named.conf
.
options {$
\tdirectory "/var/named";$
\tlisten-on port 53 { any; };$
};$
$
zone "oracleexpert.com" IN {$
\ttype master;$
\tfile "oracleexpert.com.fwd.zone";$
\tallow-update { none; };$
};$
$
zone "localhost" IN {$
\ttype master;$
\tfile "localhost.fwd.zone";$
\tallow-update { none; };$
};$
$
zone "190.168.172.in-addr.arpa" IN {$
\ttype master;$
\tfile "172.168.190.rev.zone";$
\tallow-update { none; };$
};$
$
zone "0.0.127.in-addr-arpa" IN {$
\ttype master;$
\tfile "localhost.rev.zone";$
\tallow-update { none; };$
};$
$
zone "255.in-addr.arpa" IN {$
\ttype master;$
\tfile "named.broadcast";$
\tallow-update { none; };$
};$
$
zone "0.in-addr.arpa" IN {$
\ttype master;$
\tfile "named.zero";$
\tallow-update { none; };$
};$
$
include "/etc/rndc.key";$
[root@alpha ~]#
답변1
점을 제거하십시오. 바꾸다:
zone "190.168.172.in-addr.arpa." IN {
type master;
file "172.168.190.rev.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa." IN {
type master;
file "localhost.rev.zone";
allow-update { none; };
};
그것은해야한다:
zone "190.168.172.in-addr.arpa" IN {
type master;
file "172.168.190.rev.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "localhost.rev.zone";
allow-update { none; };
};