From 194c4fa293b444c7802d79d66fe67f0adc899875 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 3 Feb 2025 10:51:53 +0100 Subject: [PATCH] fichier du dns2 --- sisr1/tp02-dns/dns2/db.sio-ra.lan | 20 ++++++++++++++++++++ sisr1/tp02-dns/dns2/db.sio-ra.lan.rev | Bin 0 -> 693 bytes sisr1/tp02-dns/dns2/named.conf | 11 +++++++++++ sisr1/tp02-dns/dns2/named.conf.local | 23 +++++++++++++++++++++++ sisr1/tp02-dns/dns2/resolv.conf | 4 ++++ 5 files changed, 58 insertions(+) create mode 100644 sisr1/tp02-dns/dns2/db.sio-ra.lan create mode 100644 sisr1/tp02-dns/dns2/db.sio-ra.lan.rev create mode 100644 sisr1/tp02-dns/dns2/named.conf create mode 100644 sisr1/tp02-dns/dns2/named.conf.local create mode 100644 sisr1/tp02-dns/dns2/resolv.conf diff --git a/sisr1/tp02-dns/dns2/db.sio-ra.lan b/sisr1/tp02-dns/dns2/db.sio-ra.lan new file mode 100644 index 0000000..ce37d79 --- /dev/null +++ b/sisr1/tp02-dns/dns2/db.sio-ra.lan @@ -0,0 +1,20 @@ +$ORIGIN . +$TTL 604800 ; 1 week +sio-ra.lan IN SOA dns1-ra.sio-ra.lan. root.dns1-ra.sio-ra.lan. ( + 2 ; serial + 604800 ; refresh (1 week) + 86400 ; retry (1 day) + 2419200 ; expire (4 weeks) + 604800 ; minimum (1 week) + ) + NS dns1-ra.sio-ra.lan. + NS dns2-ra.sio-ra.lan. + A 127.0.0.1 +$ORIGIN sio-ra.lan. +0.168.192.in-addr.arpa PTR dns1-ra.sio.lan. +deb-dhcp-ra A 192.168.0.120 +dhcp CNAME deb-dhcp-ra +dns1 CNAME dns1-ra +dns1-ra A 192.168.0.121 +dns2 CNAME dns2-ra +dns2-ra A 192.168.0.122 diff --git a/sisr1/tp02-dns/dns2/db.sio-ra.lan.rev b/sisr1/tp02-dns/dns2/db.sio-ra.lan.rev new file mode 100644 index 0000000000000000000000000000000000000000..eb2c9c9584e0b3f90dea6b26e5f95da02fa87f1f GIT binary patch literal 693 zcma)(u?oU45QhJ>RS_K>926Yfq|js#b<@#J92_MY(So$4b+?0W;T!rCUW7uc9-1Ks z$=!EfE&v<=;&{JpDVA3ZfjS*DXF2TxT@ko)JaOezHNwc(#-yH36AjE8Cd#Cr>UtK& z6x_3p;H7bV`F24t=LHq39K%P^Kv4_vS3B=&b$|u!R{pnOhw)evpMT&V)~ncbE- z?0j?DCvQ(BLRKL;uq4TnzWa= OFi6D~ypVPdT*ecsNsI~r literal 0 HcmV?d00001 diff --git a/sisr1/tp02-dns/dns2/named.conf b/sisr1/tp02-dns/dns2/named.conf new file mode 100644 index 0000000..bc71baa --- /dev/null +++ b/sisr1/tp02-dns/dns2/named.conf @@ -0,0 +1,11 @@ +// This is the primary configuration file for the BIND DNS server named. +// +// Please read /usr/share/doc/bind9/README.Debian for information on the +// structure of BIND configuration files in Debian, *BEFORE* you customize +// this configuration file. +// +// If you are just adding zones, please do that in /etc/bind/named.conf.local + +include "/etc/bind/named.conf.options"; +include "/etc/bind/named.conf.local"; +include "/etc/bind/named.conf.default-zones"; diff --git a/sisr1/tp02-dns/dns2/named.conf.local b/sisr1/tp02-dns/dns2/named.conf.local new file mode 100644 index 0000000..2f2fa79 --- /dev/null +++ b/sisr1/tp02-dns/dns2/named.conf.local @@ -0,0 +1,23 @@ +// +// Do any local configuration here +// zone directe +zone "sio-ra.lan" { + type slave; + file "/etc/bind/db.sio-ra.lan"; + masters { 192.168.0.121; }; + masterfile-format text; +}; + +// zone inverse +zone "0.168.192.in-addr.arpa" { + type slave; + notify no; + file "/etc/bind/db.sio-ra.lan.rev"; + masters { 192.168.0.121; }; +}; + +// Consider adding the 1918 zones here, if they are not used in your +// organization +//include "/etc/bind/zones.rfc1918"; + + diff --git a/sisr1/tp02-dns/dns2/resolv.conf b/sisr1/tp02-dns/dns2/resolv.conf new file mode 100644 index 0000000..e11c6ca --- /dev/null +++ b/sisr1/tp02-dns/dns2/resolv.conf @@ -0,0 +1,4 @@ +domain sio-ra.lan +search sio-ra.lan +nameserver 127.0.0.1 +nameserver 10.121.38.8