View previous topic :: View next topic |
Author |
Message |
KUV Tux's lil' helper
Joined: 18 Mar 2005 Posts: 128
|
Posted: Thu Nov 24, 2005 5:05 am Post subject: Need help (DHCP+DNS) [solved] |
|
|
Взялся вот настраивать связку этих сабжей. Делал все по ману, сначала была бага с тем что там неправильно написан алгоритм шифрования ключа - HMAC-MD5.SIG-ALG.REG.INT named не воспринимает, надо просто HMAC-MD5. А теперь вот застрял на другой баге.
Итак: комп с которого ведется тестовое подключение - 192.168.108.165
Собственно сервер: 192.168.108.166
В итоге вот что в логе:
Code: | Nov 24 07:59:43 [dhcpd] Wrote 1 leases to leases file.
Nov 24 07:59:47 [dhcpd] Unable to add forward map from kuv-nb.network to 192.168.108.165: timed out
Nov 24 07:59:47 [dhcpd] DHCPREQUEST for 192.168.108.165 from 00:0e:a6:ba:18:14 (kuv-nb) via br0
Nov 24 07:59:47 [dhcpd] DHCPACK on 192.168.108.165 to 00:0e:a6:ba:18:14 (kuv-nb) via br0 |
Вообще, может кто-то уже делал такую настройку, может подкинете свои named.conf и dhcpd.conf?
Last edited by KUV on Thu Nov 24, 2005 4:37 pm; edited 1 time in total |
|
Back to top |
|
|
KUV Tux's lil' helper
Joined: 18 Mar 2005 Posts: 128
|
Posted: Thu Nov 24, 2005 5:16 am Post subject: |
|
|
Мои конфиги.
dhcpd.conf:
Code: | ddns-update-style interim;
key DHCP_UPDATER {
algorithm HMAC-MD5;
secret blablabla;
}
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 local7;
zone network. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 168.192.IN-ADDR.ARPA. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
subnet 192.168.0.0 netmask 255.255.128.0 {
option subnet-mask 255.255.128.0;
option broadcast-address 192.168.127.255;
range 192.168.10.1 192.168.126.250;
} |
named.conf:
Code: | options {
directory "/var/bind";
listen-on { 127.0.0.1; 192.168.108.166; };
pid-file "/var/run/named/named.pid";
};
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 "127.IN-ADDR.ARPA" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no;
};
key DHCP_UPDATER {
algorithm HMAC-MD5;
secret blablabla;
};
zone "168.192.IN-ADDR.ARPA" IN {
type master;
file "pri/db.192.168";
allow-update { key DHCP_UPDATER; };
};
zone "network" {
type master;
file "pri/db.network";
allow-update { key DHCP_UPDATER; };
}; |
|
|
Back to top |
|
|
cha-chaynik Tux's lil' helper
Joined: 18 Feb 2005 Posts: 115 Location: Russia, St.Petersburg
|
Posted: Thu Nov 24, 2005 12:46 pm Post subject: |
|
|
Мой работающий dhcpd.conf:
Code: |
ddns-updates on;
option domain-name "office.spb.nestle-waters.ru";
option domain-name-servers 10.203.78.11, 10.203.78.17;
ddns-domainname "office.spb.nestle-waters.ru";
option netbios-name-servers 10.203.78.11;
option routers 10.203.78.11;
get-lease-hostnames false;
use-host-decl-names on;
server-identifier 10.203.78.11;
default-lease-time 172800;
ddns-update-style interim;
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret xxxxxxxxxxxxxxxxxxxxxxxxx;
}
zone office.spb.nestle-waters.ru. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 78.203.10.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
shared-network office {
subnet 10.203.78.0 netmask 255.255.255.0 {
option routers 10.203.78.11;
option subnet-mask 255.255.255.0;
range dynamic-bootp 10.203.78.100 10.203.78.204;
}
}
|
|
|
Back to top |
|
|
KUV Tux's lil' helper
Joined: 18 Mar 2005 Posts: 128
|
Posted: Thu Nov 24, 2005 4:36 pm Post subject: |
|
|
Разобрался таки=) ошибка была в том что файлы с динамическими зонами я создал пустые. |
|
Back to top |
|
|
|