diff --git a/sio1/sisr1/20-dns/srv1/db.domaine.lan b/sio1/sisr1/20-dns/srv1/db.domaine.lan new file mode 100644 index 0000000..6858f8c --- /dev/null +++ b/sio1/sisr1/20-dns/srv1/db.domaine.lan @@ -0,0 +1,22 @@ +$ORIGIN . +$TTL 38400 ; 10 hours 40 minutes +domaine.lan IN SOA serv1.domaine.lan. root.serv1.domaine.lan. ( + 2023030201 ; serial + 10800 ; refresh (3 hours) + 3600 ; retry (1 hour) + 604800 ; expire (1 week) + 38400 ; minimum (10 hours 40 minutes) + ) + NS serv1.domaine.lan. + NS serv2.domaine.lan. + +serv1.domaine.lan. A 192.168.0.161 +serv2.domaine.lan. A 192.168.0.160 + +$ORIGIN domaine.lan. +poste1 A 192.168.0.100 +poste2 A 192.168.0.101 + + +www CNAME poste1.domaine.lan. + diff --git a/sio1/sisr1/20-dns/srv1/db.domaine.lan.rev b/sio1/sisr1/20-dns/srv1/db.domaine.lan.rev new file mode 100644 index 0000000..4b27788 --- /dev/null +++ b/sio1/sisr1/20-dns/srv1/db.domaine.lan.rev @@ -0,0 +1,14 @@ +$TTL 38400 ; 10 hours 40 minutes +@ IN SOA serv1.domaine.lan. root.serv1.domaine.lan. ( + 2016091501 ; serial + 10800 ; refresh (3 hours) + 3600 ; retry (1 hour) + 604800 ; expire (1 week) + 38400 ; minimum (10 hours 40 minutes) + ) + IN NS serv1.domaine.lan. + IN NS serv2.domaine.lan. + +61 IN PTR serv1.sio.lan. +60 IN PTR serv2.sio.lan. +14 IN PTR wd.sio.lan. diff --git a/sio1/sisr1/20-dns/srv1/named.conf b/sio1/sisr1/20-dns/srv1/named.conf new file mode 100644 index 0000000..880786a --- /dev/null +++ b/sio1/sisr1/20-dns/srv1/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/srv1/named.conf.local b/sio1/sisr1/20-dns/srv1/named.conf.local new file mode 100644 index 0000000..0832dba --- /dev/null +++ b/sio1/sisr1/20-dns/srv1/named.conf.local @@ -0,0 +1,19 @@ +// +// 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"; + }; diff --git a/sio1/sisr1/20-dns/srv1/resolv.conf b/sio1/sisr1/20-dns/srv1/resolv.conf new file mode 100644 index 0000000..f3f4e3e --- /dev/null +++ b/sio1/sisr1/20-dns/srv1/resolv.conf @@ -0,0 +1,4 @@ +search domaine.lan +nameserver 10.121.38.7 +nameserver 127.0.0.1 #on ressoud localement +