Установил Bind 9.4.2 в качестве кеширующего DNS сервера.
Команды dig и nslookup c сервера ошибок не показывают. Но если резолвить с другой машины, пишет:
>nslookup ya.ru*** Can't find server name for address 192.168.10.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.10.1
Non-authoritative answer:
Name: ya.ru
Address: 213.180.204.8
--------------------------
named.conf
include "/etc/bind/named.conf.options";
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
allow-transfer { 127.0.0.1; };
allow-query { 127.0.0.1; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
allow-transfer { 127.0.0.1; };
allow-query { 127.0.0.1; };
};
zone "10.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192.168.10";
};
-----------------------------------
named.conf.options
acl "corpnets" {192.168.10.0/27; 127.0.0.1;};
options {
directory "/var/cache/bind";
pid-file "/var/cache/bind/named.pid";
dump-file "/var/cache/bind/named_dump.db";
statistics-file "/var/cache/bind/named.stats";
allow-query { "corpnets"; };
version "this is my bind";
forwarders { 213.148.31.1; 213.148.30.1; };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
-----------------------------------
resolv.conf
nameserver 127.0.0.1
-----------------------------------
Может нужно что-то поправить в обратной зоне для сервера?
-----------------
db.192.168.10
$TTL 604800
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
----------------------------------------
Заранее благодарю.