From 64f0cc1d1db80a81bdc7d72a7f22a9b74894f908 Mon Sep 17 00:00:00 2001 From: "yann.lereuille" Date: Mon, 3 Feb 2025 10:49:14 +0100 Subject: [PATCH] Ajout des db.sio-yl.lan et idem.rev --- sisr1/tp02-dns/dns1/db.sio-yl.lan | 21 +++++++++++++++++++++ sisr1/tp02-dns/dns1/db.sio-yl.lan.rev | 17 +++++++++++++++++ sisr1/tp02-dns/dns1/named.conf.options | 24 ++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 sisr1/tp02-dns/dns1/db.sio-yl.lan create mode 100644 sisr1/tp02-dns/dns1/db.sio-yl.lan.rev create mode 100644 sisr1/tp02-dns/dns1/named.conf.options diff --git a/sisr1/tp02-dns/dns1/db.sio-yl.lan b/sisr1/tp02-dns/dns1/db.sio-yl.lan new file mode 100644 index 0000000..528d75a --- /dev/null +++ b/sisr1/tp02-dns/dns1/db.sio-yl.lan @@ -0,0 +1,21 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA dns1-yl.sio-yl.lan. root.dns1.sio-yl.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL + NS dns1-yl.sio-yl.lan. +dns1-yl.sio-yl.lan. A 192.168.0.121 + + +@ IN NS localhost. +;@ IN A 127.0.0.1 +deb-dhcp-yl IN A 192.168.0.120 +dhcp CNAME deb-dhcp-yl.sio-yl.lan. +dns CNAME dns1-yl.sio-yl.lan. +dns2-yl IN A 192.168.0.122 +;@ IN AAAA ::1 diff --git a/sisr1/tp02-dns/dns1/db.sio-yl.lan.rev b/sisr1/tp02-dns/dns1/db.sio-yl.lan.rev new file mode 100644 index 0000000..89f723e --- /dev/null +++ b/sisr1/tp02-dns/dns1/db.sio-yl.lan.rev @@ -0,0 +1,17 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA dns1-yl.sio-yl.lan. root.dns1-yl.sio-yl.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; + IN NS dns1-yl.sio.lan. + + +120 IN PTR deb-dhcp-yl.sio-yl.lan. +121 IN PTR dns1-yl.sio-yl.lan. +122 IN PTR dns2-yl.sio-yl.lan. diff --git a/sisr1/tp02-dns/dns1/named.conf.options b/sisr1/tp02-dns/dns1/named.conf.options new file mode 100644 index 0000000..6ac2441 --- /dev/null +++ b/sisr1/tp02-dns/dns1/named.conf.options @@ -0,0 +1,24 @@ +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 { + 10.121.38.7; // Forwarder 1 + }; + + //======================================================================== + // If BIND logs error messages about the root key being expired, + // you will need to update your keys. See https://www.isc.org/bind-keys + //======================================================================== + dnssec-validation no; + + listen-on-v6 { any; }; +};