Problème DNS

Bonjour à tous,

je suis en train d’installer un serveur DNS sur un debian 10, j’ai suivi la procédure https://www.numelion.com/installer-serveur-dns-linux.html

Tous c’est très bien dérouler.
Ensuite, j’ai installer un autre serveur (sur le meme réseau), j’ai mis dans mon fichier le hostname ainsi que l’adresse ip de ma nouvelle machine.
j’ai modifier mon /etc/resolv.conf pour qu’il utilise bien mon serveur dns mais quand je fait un nslookup sur le nouveau serveur il n’arrive pas a trouver mon second serveur.

voici mes différents fichiers

/etc/resolv.conf
nameserver 192.168.81.128
domain domaine.local

/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

    source /etc/network/interfaces.d/*

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    allow-hotplug ens33
    iface ens33 inet static
            address 192.168.81.128
            netmask 255.255.255.0
            gateway 192.168.81.2

route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
0.0.0.0 192.168.81.2 0.0.0.0 UG 0 0 0 ens33
192.168.81.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33

/etc/bind/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";
zone "domaine.local" {
        type master;
        file "/etc/bind/dns/db.domaine.local";
};

zone "81.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/reverse/db.81.168.192.in-adddr.arpa";
};

/etc/bind/dns/db.domaine.local
$TTL 10800
$ORIGIN domaine.local
@ IN SOA DNS.domaine.local. root.domaine.local. (
20201112;
3h;
1h;
1w;
1h);
@ IN NS DNS.domaine.local.
DNS IN A 192.168.81.128
localhost IN A 127.0.0.1
ocs IN A 192.168.81.129

/etc/bind/reverse/db.81.168.192.in-adddr.arpa
$TTL 10800
$ORIGIN 81.168.192.in-addr.arpa.
@ IN SOA DNS.domaine.local. root.domaine.local. (
20201112;
3h;
1h;
1w;
1h);
@ IN NS DNS.domaine.local.
128 IN PTR DNS.domaine.local.
129 IN PTR ocs.domaine.local.

dig ocs.domaine.local
; <<>> DiG 9.11.5-P4-5.1+deb10u2-Debian <<>> ocs.domaine.local
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37734
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 42a3e7aaa328c41a986b000f5fb3c2b4950b009a97ef3939 (good)
;; QUESTION SECTION:
;ocs.domaine.local.               IN      A

;; Query time: 3 msec
;; SERVER: 192.168.81.128#53(192.168.81.128)
;; WHEN: mar. nov. 17 13:31:48 CET 2020
;; MSG SIZE  rcvd: 72

ping ocs.domaine.local
ping: ocs.domaine.local: Échec temporaire dans la résolution du nom

Si quelqu’un a une idée je suis preneur
Merci d’avance

Bonjour,

Déjà commence par utiliser une autre TLD que .local qui est réservé au protocole mDNS (avahi, bonjour, etc.) :

;; WARNING: .local is reserved for Multicast DNS

Tu peux utiliser .home.arpa. ou .test. (cf. https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xml)
Quand tu auras corrigé cela, vérifie ta configuration bind avec named-checkconf et tes fichiers de zone avec named-checkzone.