Bonjour à tous,
Cela fait plusieurs jours que j’essaie de configurer, en vain, via différents tuto sur le net, un DNS Dynamique avec mise à jour par DHCP (bind9 et dhcpd).
Je n’ai pas d’erreur avec un named-checkconf ou named-checkzone.
Dans mon infra j’ai le serveur debian, j’ai un poste debian configuré pour recevoir le DHCP ( il le reçoit bien avec l’ip 192.168.1.11) et un serveur AD Windows (dc).
Voici mes commandes NSLOOKUP
> 192.168.1.11
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find 11.1.168.192.in-addr.arpa.: NXDOMAIN
> machine-user
;; connection timed out; no servers could be reached
>
Comme vous pouvez le voir rien ne fonctionne…
Tous mes fichiers de conf du DNS sont dans /etc/bind.
Voici mes fichiers de conf :
dhcpd.conf
server-identifier linux;
ddns-updates on;
ddns-update-style interim;
ddns-domainname "utopia.net.";
ddns-rev-domainname "in-addr.arpa.";
ignore client-updates;
include "/etc/bind/rndc.key";
zone utopia.net. {
primary 127.0.0.1;
key rndc-key;
}
option domain-name "utopia.net";
option domain-name-servers 192.168.1.1;
option ntp-servers 192.168.1.1;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.200;
zone utopia.net. {
primary 192.168.1.1;
key "rndc-key";
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.1;
key "rndc-key";
}
}
host dc {
hardware ethernet 00:0C:29:18:FA:90;
fixed-address 192.168.1.2;
}
named.conf
[code]include “/etc/bind/named.conf.options”;
include “/etc/bind/named.conf.local”;
include “/etc/bind/named.conf.default-zones”;
controls {
inet 127.0.0.1 allow {localhost; } keys { “rndc-key”; };
};
[/code]
named.conf.local
[code]zone “utopia.net” {
type master;
file “/etc/bind/db.utopia.net”;
allow-update { key “rndc-key”; };
notify yes;
};
zone “1.168.192.in-addr.arpa” {
type master;
file “/etc/bind/db.utopia.net.rev”;
allow-update { key “rndc-key”; };
notify yes;
};
include “/etc/bind/rndc.key”;
[/code]
named.conf.options
options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { none; };
};
Fichier de zone db.utopia.net
$ORIGIN .
$TTL 604800
utopia.net IN SOA utopia.net. root.utopia.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
NS linux.utopia.net.
$ORIGIN utopia.net.
linux A 192.168.1.1
dc A 192.168.1.2
Fichier de zone inversé db.utopia.net.rev
$ORIGIN .
$TTL 604800
1.168.192.in-addr.arpa IN SOA utopia.net. root.utopia.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
NS linux.utopia.net.
$ORIGIN 1.168.192.in-addr.arpa.
1 PTR linux.utopia.net.
Fichier resolv.conf
main utopia.net
search utopia.net
nameserver 192.168.1.1
Fichier /etc/hosts
127.0.0.1 localhost
192.168.1.1 linux.utopia.net linux
# The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
Une idée quelconque du problème? Moi je sèche…