commit c4a09f45cd3030e211b70fa88b8f6cd05e79e021 Author: Ugo IDEZ Date: Fri May 28 09:48:38 2021 +0200 1er commite diff --git a/sio1/01-dns/db.domaine.lan b/sio1/01-dns/db.domaine.lan new file mode 100644 index 0000000..3c7299e --- /dev/null +++ b/sio1/01-dns/db.domaine.lan @@ -0,0 +1,24 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +domaine.lan. IN SOA srv1.domaine.lan. root.srv1.domaine.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL + + NS srv1.domaine.lan. + NS srv2.domaine.lan. + +srv1.domaine.lan. A 192.168.0.30 +srv2.domaine.lan. A 192.168.0.26 + +$ORIGIN domaine.lan. +xp-master A 192.168.0.31 +xp2 A 192.168.0.32 +xp3 A 192.168.0.33 +xp4 A 192.168.0.34 + +www CNAME srv1.domaine.lan. diff --git a/sio1/01-dns/db.domaine.lan.rev b/sio1/01-dns/db.domaine.lan.rev new file mode 100644 index 0000000..a225d67 --- /dev/null +++ b/sio1/01-dns/db.domaine.lan.rev @@ -0,0 +1,20 @@ + +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA srv1.domaine.lan. root.srv1.domaine.lan.( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; + NS srv1.domaine.lan. + NS srv2.domaine.lan. + NS xp-master.domaine.lan. + +30 IN PTR srv1.domaine.lan. +31 IN PTR xp-master.domaine.lan. +26 IN PTR srv2.domaine.lan. + + diff --git a/sio1/01-dns/named.conf b/sio1/01-dns/named.conf new file mode 100644 index 0000000..880786a --- /dev/null +++ b/sio1/01-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/01-dns/named.conf.local b/sio1/01-dns/named.conf.local new file mode 100644 index 0000000..d1f8f64 --- /dev/null +++ b/sio1/01-dns/named.conf.local @@ -0,0 +1,21 @@ +// +// 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"; + }; + + // zone inverse + zone "0.168.192.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.domaine.lan.rev"; + };