Привет! Скажите, как настроить DNS чтобы он и в локальной сети резолвил локальные адреса типа d1.mynet.my и если я пингую ya.ru отсылал на DNS провайдера.
Вот конфиг
options {
listen-on port 53 { 192.168.0.0/24; };
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 { localhost;192.168.0.0/24;};
recursion no;
forwarders {192.168.243.2;};
// dnssec-enable yes;
// dnssec-validation yes;
// dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};
logging {
channel default_debug {
file "data/named.run";
severity debug 3;
print-time yes;
print-category yes; };
};
include "/etc/named.rfc1912.zones";
zone "cloud.stack" IN {
type master;
file "cloud.stack";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "168.192.rev";
};
Если пингую ya.ru в логах получаю :
12-Jun-2012 00:03:55.241 security: client 192.168.0.254#42483: request is not signed
12-Jun-2012 00:03:55.241 security: client 192.168.0.254#42483: recursion not available
12-Jun-2012 00:03:55.241 client: client 192.168.0.254#42483: query
12-Jun-2012 00:03:55.241 security: client 192.168.0.254#42483: query 'ya.ru.cloud.stack/A/IN' approved
12-Jun-2012 00:03:55.241 client: client 192.168.0.254#42483: send
12-Jun-2012 00:03:55.241 client: client 192.168.0.254#42483: sendto
12-Jun-2012 00:03:55.241 client: client 192.168.0.254#42483: senddone
12-Jun-2012 00:03:55.241 client: client 192.168.0.254#42483: next
12-Jun-2012 00:03:55.241 client: client 192.168.0.254#42483: endrequest
12-Jun-2012 00:03:55.241 client: client @0xb5872008: udprecv