Возникла проблема с настройкой BIND9. Настроил зону ".home", при попытке сделать nslookup на этой же машине, возвращается далеко не ip хоста.
andrey@Acer:~$ nslookup phone1
Server: 192.168.1.10
Address: 192.168.1.10#53
Non-authoritative answer:
Name: phone1.home
Address: 10.0.0.1
Конфиги BIND:
/etc/bind/named.conf:
logging {
channel query.log {
file "/var/log/query.log";
severity debug 3;
};
category queries { query.log; };
};
/etc/bind/named.conf.default-zones:
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "home" {
type master;
file "/etc/bind/db.home";
};
/etc/bind/named.conf.options:
acl "trusted" {
192.168.1.10; # ns1 - can be set to localhost
192.168.1.20; # phone1
192.168.1.30; # phone2
};
options {
directory "/var/cache/bind";
recursion yes; # enables resursive queries
allow-recursion { trusted; }; # allows recursive queries from "trusted" clients
listen-on { 192.168.1.10; }; # ns1 private IP address - listen on private network only
allow-transfer { none; }; # disable zone transfers by default
forwarders {
8.8.8.8;
};
/etc/bind/db.home:
$TTL 604800
@ IN SOA ns1.home. root.home. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.home.
;
ns1.home. IN A 192.168.1.10
phone1.home. IN A 192.168.1.20
phone2.home. IN A 192.168.1.30
Так же при проверке получаю
andrey@Acer:~$ named-checkzone home /etc/bind/db.home
zone home/IN: loaded serial 2
OK
Заранее благодарен за помощь.