Приветствую всех.
Мои файлы настройки:
resolv.conf
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 4573
#
### END INFO
nameserver 192.168.1.180
search 192.168.1.180
named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// 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";
};
include "/etc/bind/named.conf.local";
named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "my.local"
{
type master;
file "/etc/bind/zones/my.local.db";
};
zone "1.168.192.in-addr.arpa"
{
type master;
file "/etc/bind/zones/1.168.192.in-addr.arpa";
};
named.conf.options
acl "mynet" { 192.168.1.0/24; };
options {
directory "/var/cache/bind";
allow-query { "mynet"; };
allow-recursion { "mynet"; };
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
192.168.1.3;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
my.local.db
$ORIGIN my.local.
$TTL 604800
@ IN SOA my.local. admin.my.local. (
1;
28800;
3600;
604800;
38400;
)
@ A 192.168.1.180
NS ns1.my.local. //первичный DNS сервер
NS ns2.my.local.
NS my.local.
PTR 180.1.168.192.in-addr.arpa.
MX 10 my.local.
MX 10 mail.my.local.
mail A 192.168.1.180
www A 192.168.1.180
ns A 192.168.1.180
micha IN A 192.168.1.150 //рабочие станции
1.168.192.in-addr.arpa
$TTL 604800
@ IN SOA ns.my.local. root.my.local. (
1;
28800;
604800;
604800;
86400;
)
@ IN NS ns.
1 IN PTR ns.my.local.
212 IN PTR micha.my.local.
Команда nslookup my.local
выдает
Server: 192.168.1.180
Address: 192.168.1.180#53
** server can't find my.local: NXDOMAIN
Команда nslookup micha.my.local
выдает
Server: 192.168.1.180
Address: 192.168.1.180#53
** server can't find micha.my.local: NXDOMAIN
Подскажите, где ошибка. Bind стартует нормально не ругается