Доброго времени суток!
Настраиваю DDNS + DHCP под FREEBSD 7.2.КОНФИГ dhcpd.conf:
.................
option domain-name "rocket.local";
option domain-name-servers free.rocket.local;
default-lease-time 720000;
min-lease-time 720000;
max-lease-time 720000;
authoritative;
ddns-update-style interim;
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret YWu457ml2mDSE8D37Q2Ugg==;
}
zone rocket.local. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 20.168.192.IN-ADDR.ARPA. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
log-facility local7;
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.20.2 192.168.20.200;
option routers 192.168.20.254;
option subnet-mask 255.255.255.0;
}
..................
free.rocket.local(192.168.20.254) -машина на которой я поднял dhcp и пытаюсь поднять DDNS
ключ key генерил командой dnssec -keygen -a HMAC-MD5 -b 128 -r /dev/urandom -n USER DHCP_UPDATER.(если конечно это стоит пояснять)
КОНФИГ named.conf:
....................
options {
// Relative to the chroot directory, if any
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret YWu457ml2mDSE8D37Q2Ugg==;
};
logging {
channel update_debug {
file "/var/log/named-update.log";
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_info {
file "/var/log/named-auth.log";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category update { update_debug; };
category security { security_info; } ;
};
zone "20.168.192.in-addr.arpa" IN {
type master;
file "db.192.168.20";
allow-update { key DHCP_UPDATER; };
};
zone "rocket.local" {
type master;
file "db.rocket.local";
allow-update { key DHCP_UPDATER; };
notify no;
};
.........................
Файл Зоны db.rocket.local:
................
$TTL 3600
rocket.local. IN SOA free.rocket.local. root.free.rocket.local. (
2006011700 ; serial number
10800 ; Obnovleniya
3600 ; Povtornie popitki
604800 ; ustarevanie
86400 ) ;minimaljnoe vtemja zhizni
;server dns
@ IN NS free.rocket.local.
;imena mashin
localhost IN A 127.0.0.1
free IN A 192.168.20.254
....................................
Файл обратной зоны db.192.168.20
........................
$TTL 3600
20.168.192.in-addr.arpa. IN SOA free.rocket.local. root.free.rocket.local. (
2001061000 ; serial
10800 ; update
3600 ;refresh
604800 ;ustarev
86400 ) ;min ttl
@ IN NS free.rocket.local.
1 IN PTR free.rocket.local.
2 IN PTR localhost.
.........................
в rc.conf добавил:
#vkluchenie DNS
named_enable="YES"
named_flags="-u bind -g bind"
В ИТОГЕ: dhcp работает а dns выдает ошибки:
1.free named[1180] : could not listen on listen on UDP socket:permission denied
2.free named[1180] : creating IPv4 interface re0 failed; interface ignored
Подскажите куда смотреть???