Код: Выделить всё
172.22.0.0/16 сеть
172.22.0.250 DHCP
172.22.250.5 DNS он же hello.domain.ru
domain.ru домен
Код: Выделить всё
default-lease-time 720000;
max-lease-time 720000;
min-lease-time 720000;
log-facility local7;
ddns-update-style interim;
ddns-updates on;
ddns-domainname "domain.ru";
server-name "172.22.250.5";
authoritative;
key DHCP_UPDATER {
algorithm hmac-md5;
secret "zYqi9wGuGMvrjjxmHy+/Yg==";
};
zone optimal.forum-auto.ru.{
primary 172.22.250.5;
key dhcp_updater;
}
zone 22.172.in-addr.arpa.{
primary 172.22.250.5;
key dhcp_updater;
}
subnet 172.22.0.0 netmask 255.255.0.0 {
range 172.22.33.1 172.22.33.125;
option routers 172.22.0.1;
option domain-name-servers 172.22.0.150;
option domain-name "domain.ru";
option subnet-mask 255.255.0.0;
option netbios-name-servers 172.22.0.150;
}
Код: Выделить всё
options {
directory "/etc/namedb";
listen-on { 172.22.250.5; localhost; xxx.xxx.xxx.xxx; };
version "O_O";
allow-transfer { none; };
forwarders { xxx.xxx.xxx.xxx; };
};
key DHCP_UPDATER {
algorithm hmac-md5;
secret "zYqi9wGuGMvrjjxmHy+/Yg==";
};
zone "domain.ru" {
type master;
file "/etc/namedb/domain.ru.zone";
allow-update { key dhcp_updater; };
notify no;
};
zone "22.172.in-addr.arpa" in {
type master;
file "/etc/namedb/172.22.zone";
allow-update { key dhcp_updater; };
};
Код: Выделить всё
$ORIGIN .
$TTL 86400 ; 1 day
domain.ru IN SOA ns.domain.ru. root.domain.ru. (
200216887 ; serial
28800 ; refresh (8 hours)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS ns.domain.ru.
$ORIGIN domain.ru.
hello A 172.22.250.5
Код: Выделить всё
$ORIGIN .
$TTL 3600 ; 1 hour
22.172.IN-ADDR.ARPA IN SOA ns.domain.ru. root.domain.ru. (
6180 ; serial
900 ; refresh (15 minutes)
600 ; retry (10 minutes)
86400 ; expire (1 day)
3600 ; minimum (1 hour)
)
NS ns.domain.ru.
Код: Выделить всё
25-Oct-2008 17:10:43.860 update: info: client 172.22.0.250#52755: updating zone '22.172.in-addr.arpa/IN': update failed: update RR is outside zone (NOTZONE)