Bonjour,
Ca ne sera pas la première fois que ce sujet revient mais je n'ai pas encore trouvé la solution à mon problème....
Por planter un peu le décors, j'ai :
- 1 serveur avec ISC DHCP (192.168.0.10) qui fournit le service DHCP à 2 sous réseaux : 192.168.1.x & 192.168.2.x
- 1 serveur avec ISC BIND (192.168.10.10) sur un troisième sous réseaux (192.168.10.x relié au serveur DHCP)
- 1 quatrième sous réseaux (192.168.11.x) mais qui n'intervient pas ici
- 1 client (192.168.1.x) : desktop-lan
J'essaye donc de mettre à jour BIND via le DHCP pour les 2 sous réseaux : 192.168.1.x & 192.168.2.x
Toutes machines sont sous Debian Lenny (pour le moment elles sont virtualisés via KVM)
mais malgrès pas mal d'essai je n'arrive pas à résoudre l'erreur suivante :
Apr 22 19:49:49 srv1-host dhcpd: DHCPDISCOVER from 52:54:00:12:34:55 via eth1
Apr 22 19:49:50 srv1-host dhcpd: DHCPOFFER on 192.168.1.129 to 52:54:00:12:34:55 (desktop-lan) via eth1
Apr 22 19:49:50 srv1-host dhcpd: Added new forward map from desktop-lan.mondomaine.no-ip.org to 192.168.1.129
Apr 22 19:49:50 srv1-host dhcpd: [b]unable to add reverse map from 129.1.168.192.in-addr.arpa. to desktop-lan.mondomaine.no-ip.org: timed out[/b]
Apr 22 19:49:50 srv1-host dhcpd: DHCPREQUEST for 192.168.1.129 (192.168.1.1) from 52:54:00:12:34:55 (desktop-lan) via eth1
Apr 22 19:49:50 srv1-host dhcpd: DHCPACK on 192.168.1.129 to 52:54:00:12:34:55 (desktop-lan) via eth1
|
voici ma config :
- dhcpd.conf
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-updates on;
ddns-update-style interim;
ddns-domainname "mondomaine.no-ip.org";
ddns-rev-domainname "in-addr.arpa.";
deny duplicates;
ignore declines;
ignore client-updates;
update-static-leases off;
# this is the key so that DHCP can authentificate itself to BIND9
include "/etc/dhcp3/rndc.key";
zone mondomaine.no-ip.org {
primary 192.168.10.10;
key rndc-key;
}
zone 1.168.192.in.addr.arpa {
primary 192.168.1.1;
key rndc-key;
}
zone 2.168.192.in.addr.arpa {
primary 192.168.2.1;
key rndc-key;
}
# option definitions common to all supported networks...
option domain-name "mondomaine.no-ip.org";
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;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.128 192.168.1.150;
option domain-name-servers 192.168.10.10;
option routers 192.168.1.1;
option ntp-servers 192.168.1.1;
}
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.128 192.168.2.150;
option domain-name-servers 192.168.10.10;
option routers 192.168.2.1;
option ntp-servers 192.168.2.1;
}
|
- le fichier named.conf est laissé par défaut
- named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
include "/etc/bind/logging.conf";
zone "mondomaine.no-ip.org" {
type master;
file "/etc/bind/mondomaine.no-ip.org.db";
allow-update {key "rndc-key";};
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.0.rev";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.1.rev";
allow-update {key "rndc-key";};
};
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.2.rev";
allow-update {key "rndc-key";};
};
zone "10.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.10.rev";
};
zone "11.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.11.rev";
};
include "/etc/bind/rndc.key";
|
- named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { none; };
listen-on { 127.0.0.1; 192.168.1.0/24; 192.168.2.0/24; 192.168.10.0/24; 192.168.11.0/24; };
version "SECRET";
allow-transfer { "none";};
allow-recursion { 127.0.0.1; 192.168.1.0/24; 192.168.2.0/24; 192.168.10.0/24; 192.168.11.0/24; };
allow-query { 127.0.0.1; 192.168.1.0/24; 192.168.2.0/24; 192.168.10.0/24; 192.168.11.0/24; };
};
|
- mondomaine.no-ip.org.db
$ORIGIN .
$TTL 600 ; 10 minutes
mondomaine.no-ip.org IN SOA mondomaine.no-ip.org. root.mondomaine.no-ip.org. (
2005063009 ; serial
43200 ; refresh (12 hours)
3600 ; retry (1 hour)
1209600 ; expire (2 weeks)
3600 ; minimum (1 hour)
)
NS srv1-vm-infra1.mondomaine.no-ip.org.
$ORIGIN mondomaine.no-ip.org.
ap1-wlan A 192.168.2.10
$TTL 300 ; 5 minutes
desktop-lan A 192.168.1.129
TXT "00c552b541e23be0c93d57dab9046d7cd5"
$TTL 600 ; 10 minutes
freebox A 192.168.0.1
srv1-host A 192.168.0.10
srv1-vm-dmz1 A 192.168.11.10
srv1-vm-infra1 A 192.168.10.10
|
- 192.168.10.rev
;
; BIND reverse data file for 192.168.10.0
;
$TTL 600 ; 10 minutes
@ IN SOA mondomaine.no-ip.org. root.mondomaine.no-ip.org. (
4 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
;
IN NS srv1-vm-infra1.mondomaine.no-ip.org.
10 IN PTR srv1-vm-infra1.mondomaine.no-ip.org.
|
- 192.168.1.rev
;
; BIND reverse data file for 192.168.1.0
;
$TTL 600 ; 10 minutes
@ IN SOA srv1-vm-infra1.mondomaine.no-ip.org. root.mondomaine.no-ip.org. (
6 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
;
IN NS srv1-vm-infra1.mondomaine.no-ip.org.
1 IN PTR srv1-host.mondomaine.no-ip.org.
|
- 192.168.0.rev
;
; BIND reverse data file for 192.168.0.0
;
$TTL 600 ; 10 minutes
@ IN SOA mondomaine.no-ip.org. root.mondomaine.no-ip.org. (
5 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
;
IN NS srv1-vm-infra1.mondomaine.no-ip.org.
1 IN PTR freebox.mondomaine.no-ip.org.
10 IN PTR srv1-host.mondomaine.no-ip.org.
|
- dhclient.conf sur "desktop-lan"
send host-name "desktop-lan";
|
Merci d'avance pour vos idées