Я пытаюсь настроить DNS в CentOS. Я следовал этому учебнику. Мое имя хоста - localhost1.localdomain, а IP - 10.16.49.32. Однако, когда я запустил «именованный» сервис, он выдает мне следующую ошибку:
ct 28 09:50:06 localhost1.localdomain named[30570]: zone 49.16.10.in-addr.arpa/IN: not loaded due to errors.
Oct 28 09:50:06 localhost1.localdomain named[30570]: zone localdomain/IN: loading from master file fwd.localdomain failed: permission denied
Oct 28 09:50:06 localhost1.localdomain named[30570]: zone localdomain/IN: not loaded due to errors.
Oct 28 09:50:06 localhost1.localdomain named[30570]: 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
Oct 28 09:50:06 localhost1.localdomain named[30570]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
Oct 28 09:50:06 localhost1.localdomain named[30570]: zone localhost.localdomain/IN: loaded serial 0
Oct 28 09:50:06 localhost1.localdomain named[30570]: zone localhost/IN: loaded serial 0
Oct 28 09:50:06 localhost1.localdomain named[30570]: all zones loaded
Oct 28 09:50:06 localhost1.localdomain named[30570]: running
Oct 28 09:50:06 localhost1.localdomain systemd[1]: Started Berkeley Internet Name Domain (DNS).
Вот содержимое named.conf:
options {
listen-on port 53 { 127.0.0.1; 10.16.49.32;};
#listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
recursing-file "/var/named/data/named.recursing";
secroots-file "/var/named/data/named.secroots";
allow-query { localhost; any; };
zone "localdomain" IN {
type master;
file "fwd.localdomain";
allow-update { none; };
};
zone "49.16.10.in-addr.arpa" IN {
type master;
file "rev.localdomain";
allow-update { none; };
};
Вот содержимое файла fwd.localdomain:
$TTL 86400
@ IN SOA localhost1.localdomain. root.localdomain. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS localhost1.localdomain.
@ IN A 10.16.49.32
localhost1 IN A 10.16.49.32
И rev.localdomain:
$TTL 86400
@ IN SOA localhost1.localdomain. root.localdomain. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS localhost1.localdomain.
localhost1 IN A 10.16.49.32
32 IN PTR localhost1.localdomain.
У меня тоже выскакивает ошибка:
host has no PTR
Куда я иду не так?