From 56dbac96014bd7ac7309443c3788e4fc61596740 Mon Sep 17 00:00:00 2001 From: johan largy Date: Thu, 3 Mar 2022 11:43:40 +0100 Subject: [PATCH] je suis con --- sio1/sisr1/20-dns/db.domaine.lan | 19 +++++++++++++++++++ sio1/sisr1/20-dns/db.domaine.lan.rev | 19 +++++++++++++++++++ sio1/sisr1/20-dns/named.conf | 11 +++++++++++ sio1/sisr1/20-dns/named.conf.local | 20 ++++++++++++++++++++ sio1/sisr1/20-dns/resolv.conf | 3 +++ 5 files changed, 72 insertions(+) create mode 100644 sio1/sisr1/20-dns/db.domaine.lan create mode 100644 sio1/sisr1/20-dns/db.domaine.lan.rev create mode 100644 sio1/sisr1/20-dns/named.conf create mode 100644 sio1/sisr1/20-dns/named.conf.local create mode 100644 sio1/sisr1/20-dns/resolv.conf diff --git a/sio1/sisr1/20-dns/db.domaine.lan b/sio1/sisr1/20-dns/db.domaine.lan new file mode 100644 index 0000000..f80cd3c --- /dev/null +++ b/sio1/sisr1/20-dns/db.domaine.lan @@ -0,0 +1,19 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +domaine.lan. IN SOA srv1.domaine.lan. root.srv1.domaine.lan. ( + 2022020100 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS srv1.domaine.lan. +@ IN NS srv2.domaine.lan. +srv1 IN A 192.168.0.121 +srv2 IN A 192.168.0.124 +;@ IN AAAA ::1 +poste1 IN A 192.168.0.122 +poste2 IN A 192.168.0.123 + diff --git a/sio1/sisr1/20-dns/db.domaine.lan.rev b/sio1/sisr1/20-dns/db.domaine.lan.rev new file mode 100644 index 0000000..6ab7ba8 --- /dev/null +++ b/sio1/sisr1/20-dns/db.domaine.lan.rev @@ -0,0 +1,19 @@ + +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA srv1.domaine.lan. root.srv1.domaine.lan. ( + 2022020100 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL + + IN NS srv1.domaine.lan. + IN NS srv2.domaine.lan. + + +121 IN PTR srv1.domaine.lan. +124 IN PTR srv2.domaine.lan. +122 IN PTR poste1.domaine.lan. +123 IN PTR poste2.domaine.lan. diff --git a/sio1/sisr1/20-dns/named.conf b/sio1/sisr1/20-dns/named.conf new file mode 100644 index 0000000..880786a --- /dev/null +++ b/sio1/sisr1/20-dns/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.gz 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/sio1/sisr1/20-dns/named.conf.local b/sio1/sisr1/20-dns/named.conf.local new file mode 100644 index 0000000..fbf0ccd --- /dev/null +++ b/sio1/sisr1/20-dns/named.conf.local @@ -0,0 +1,20 @@ +// +// 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 directe + zone "domaine.lan" { + type master; + file "/etc/bind/db.domaine.lan"; + masterfile-format text; + }; + +// zone inverse + zone "0.168.192.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.domaine.lan.rev"; + }; diff --git a/sio1/sisr1/20-dns/resolv.conf b/sio1/sisr1/20-dns/resolv.conf new file mode 100644 index 0000000..f8b6474 --- /dev/null +++ b/sio1/sisr1/20-dns/resolv.conf @@ -0,0 +1,3 @@ +domain domaine.lan +search domaine.lan +nameserver 127.0.0.1