помогите настроить связку dns+dhcp сервер
OC: Debian-squeeze6.0 релиз
конфиги dhcp.conf
option domain-name "mailserver.example";
option domain-name-servers ns.mailserver.example;
default-lease-time 600;
max-lease-time 7200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local0;
# A configuration for an internal subnet.
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.2 192.168.2.200;
option domain-name-servers ns.mailserver.example;
option domain-name "mailserver.example";
option routers 192.168.2.254;
option broadcast-address 192.168.2.255;
# option ntp-servers ns.mailserver.example;
default-lease-time 86400;
max-lease-time 432000;
}
# Обеспечение обновления информции в DNS сервере.
ddns-update-style interim;
key DHCP_UPDATER
{
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "DdJ3ikdRcW6ciIJiQTPf3A==";
};
zone mailserver.example.
{
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 2.168.192.in-addr.arpa.
{
primary 127.0.0.1;
key DHCP_UPDATER;
}
named.conf
nclude "/etc/bind/rndc.key";
options
{
directory "/var/named";
# forward first;
forwarders {
192.168.1.254;
};
# listen-on-v6
# {
# none;
# };
listen-on port 53 {
192.168.2.254;
127.0.0.1;
};
# listen-on
# {
# 127.0.0.1;
# 192.168.2.254;
# };
// to allow only specific hosts to use the DNS server:
allow-query
{
127.0.0.1;
192.168.2.0/24;
};
// if you have problems and are behind a firewall:
//query-source address * port 53;
# pid-file "/var/run/named/named.pid";
};
zone "." IN
{
type hint;
file "/var/named/db.root";
};
zone "localhost" IN
{
type master;
file "/var/named/db.localhost";
allow-update
{
none;
};
notify no;
};
zone "127.in-addr.arpa" IN
{
type master;
file "/var/named/db.127.0.0";
allow-update
{
none;
};
notify no;
};
zone "2.168.192.in-addr.arpa" IN
{
type master;
file "/var/named/db.192.168.2";
allow-update
{
key DHCP_UPDATER;
};
notify no;
};
zone "mailserver.example"
{
type master;
file "/var/named/db.example";
allow-update
{
key DHCP_UPDATER;
};
notify no;
};
# /usr/sbin/dhcpd eth1
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Listening on LPF/eth1/00:1b:21:80:81:9b/192.168.2.0/24
Sending on LPF/eth1/00:1b:21:80:81:9b/192.168.2.0/24
Sending on Socket/fallback/fallback-net
dhcp не раздает айпи..
Wrote 0 leases to leases file

Покажите пожалуйста вывод