Привет! Изучаю работу DNS, появился вопрос..
192.168.0.254 - DNS сервер 192.168.0.250 - хранилище
options {
listen-on port 53 { 127.0.0.1;192.168.0.254; };
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";
allow-query {trusted-networks;};
recursion no;
};
//controls {
// inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
// };
logging {
channel default_debug {
file "data/named.run";
severity debug 3;
print-category yes;
print-time yes;
};
};
acl "trusted-networks" {localhost; 192.168.0.0/24;};
zone "cloud.stack" IN {
type master;
file "cloud.stack";
};
zone "168.192.in-addr.arpa" {
type master;
file "192.168.rev";
};
include "/etc/named.rfc1912.zones";
file «cloud.stack :
$TTL 86400
$ORIGIN cloud.stack.
@ IN SOA cloud.stack. support.cloud.stack. ( 2012061101 ; serial
28800 ;refresh
7200 ;retry
604800 ;expire
86400 ; ttl
)
@ IN NS ns1.cloud.stack.
@ IN A 192.168.0.254
ns1 IN A 192.168.0.254
@ IN MX 10 mail.cloud.stack.
mail IN A 192.168.0.254
repo IN A 192.168.0.250
file „192.168.rev:
$TTL 86400
@ IN SOA cloud.stack. support.cloud.stack. ( 1 ; serial
28800 ;refresh
7200 ;retry
604800 ;expire
86400 ; ttl
)
@ IN NS ns1.cloud.stack.
0.254 IN PTR cloud.stack.
0.250 IN PTR repo.cloud.stack.
При запросе nslookup 192.168.0.250 или 192.168.0.254 получаю:
[root@repo /]# nslookup 192.168.0.250
Server: 192.168.0.254
Address: 192.168.0.254#53
** server can't find 250.0.168.192.in-addr.arpa.: NXDOMAIN