Споткнулся на обратной зоне. nslookup выдает ошибку. Перепробывал несколько вариантов, в голове каша.
Имеем:
uname -v
Код: Выделить всё
FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009
Код: Выделить всё
nameserver 127.0.0.1
nameserver 192.168.2.45
Код: Выделить всё
keymap="ru.koi8-r"
sshd_enable="YES"
ftpd_enable="YES"
named_enable="YES"
ifconfig_em0="inet 192.168.2.45 netmask 255.255.255.0"
defaultrouter="192.168.2.1"
hostname="mouse.buk"
Код: Выделить всё
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { 127.0.0.1; 192.168.2.45;};
};
zone "." { type hint; file "named.root"; };
zone "localhost" {
type master;
file "master/localhost.for";
};
zone "1.0.0.127.in-addr.arpa" {
type master;
file "master/localhost-rev";
};
zone "mouse.buk" {
type master;
file "master/mouse.for";
};
zone "2.168.192.in-addr.arpa" {
type master;
file "master/mouse.rev";
};
Код: Выделить всё
$TTL 3600
@ IN SOA localhost. root.localhost. (
20100728 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS localhost.
@ IN A 127.0.0.1
Код: Выделить всё
$TTL 3600
@ IN SOA localhost. root.localhost. (
20100728 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
Код: Выделить всё
$TTL 3600
@ IN SOA ns.mouse.buk. root.mouse.buk. (
20100728 ; Serial
3600 ; Refresh
900 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns.mouse.buk.
localhost IN A 127.0.0.1
mouse.buk. IN A 192.168.2.45
ns IN A 192.168.2.45
Код: Выделить всё
$TTL 3600
@ IN SOA ns.mouse.buk. root.mouse.buk. (
20100728 ; Serial
3600 ; Refresh
900 ; Retry
604800 ; Expire
86400 ) ; Minimum TTL
IN NS localhost.
1 IN PTR mouse.buk.
Код: Выделить всё
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: localhost
Address: 127.0.0.1
Код: Выделить всё
Server: 127.0.0.1
Address: 127.0.0.1#53
*** Can't find 1.0.0.127.in-addr.arpa.: No answer
Код: Выделить всё
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: mouse.buk
Address: 192.168.2.45
Код: Выделить всё
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find 45.2.168.192.in-addr.arpa.: NXDOMAIN