From 068f91967119bd15602d95ad1efa9b047952a779 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 3 Feb 2025 10:58:46 +0100 Subject: [PATCH] ajout des fichier du dns1 --- sisr1/tp02-dns/dns1/db.sio-ra.lan | 22 ++++++++++++++++++++++ sisr1/tp02-dns/dns1/db.sio-ra.lan.rev | 19 +++++++++++++++++++ sisr1/tp02-dns/dns1/named.conf.local | 20 ++++++++++++++++++++ sisr1/tp02-dns/dns1/resolv.conf | 4 ++++ 4 files changed, 65 insertions(+) create mode 100644 sisr1/tp02-dns/dns1/db.sio-ra.lan create mode 100644 sisr1/tp02-dns/dns1/db.sio-ra.lan.rev create mode 100644 sisr1/tp02-dns/dns1/named.conf.local create mode 100644 sisr1/tp02-dns/dns1/resolv.conf diff --git a/sisr1/tp02-dns/dns1/db.sio-ra.lan b/sisr1/tp02-dns/dns1/db.sio-ra.lan new file mode 100644 index 0000000..a58687e --- /dev/null +++ b/sisr1/tp02-dns/dns1/db.sio-ra.lan @@ -0,0 +1,22 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA dns1-ra.sio-ra.lan. root.dns1-ra.sio-ra.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS dns1-ra.sio-ra.lan. +@ IN NS dns2-ra.sio-ra.lan. +dns1-ra.sio-ra.lan. IN A 192.168.0.121 +dns2-ra.sio-ra.lan. IN A 192.168.0.122 +@ IN A 127.0.0.1 +0.168.192.in-addr.arpa IN PTR dns1-ra.sio.lan. +deb-dhcp-ra IN A 192.168.0.120 +;@ IN AAAA ::1 +dhcp cname deb-dhcp-ra +dns1 cname dns1-ra +dns2 cname dns2-ra diff --git a/sisr1/tp02-dns/dns1/db.sio-ra.lan.rev b/sisr1/tp02-dns/dns1/db.sio-ra.lan.rev new file mode 100644 index 0000000..e2f8090 --- /dev/null +++ b/sisr1/tp02-dns/dns1/db.sio-ra.lan.rev @@ -0,0 +1,19 @@ +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA dns1-ra.sio-ra.lan. root.dns1-ra.sio-ra.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS dns1-ra.sio-ra.lan. +@ IN A 127.0.0.1 +121 IN PTR dns1-ra.sio-ra.lan. +120 IN PTR deb-dhcp-ra.sio-ra.lan. +121 IN PTR dns2-ra.sio-ra.lan +; +dhcp cname deb-dhcp-ra +dns1 cname dns1-ra +dns2 cname dns2-ra diff --git a/sisr1/tp02-dns/dns1/named.conf.local b/sisr1/tp02-dns/dns1/named.conf.local new file mode 100644 index 0000000..dbcfc14 --- /dev/null +++ b/sisr1/tp02-dns/dns1/named.conf.local @@ -0,0 +1,20 @@ +// +// Do any local configuration here +// zone directe +zone "sio-ra.lan" { + type master; + file "/etc/bind/db.sio-ra.lan"; +}; + +// zone inverse +zone "0.168.192.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.sio-ra.lan.rev"; +}; + +// 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/dns1/resolv.conf b/sisr1/tp02-dns/dns1/resolv.conf new file mode 100644 index 0000000..e11c6ca --- /dev/null +++ b/sisr1/tp02-dns/dns1/resolv.conf @@ -0,0 +1,4 @@ +domain sio-ra.lan +search sio-ra.lan +nameserver 127.0.0.1 +nameserver 10.121.38.8