From b1a9dd99812803d02d71ff18e0fe15be5d7f0f0d Mon Sep 17 00:00:00 2001 From: Kyllian Date: Fri, 28 May 2021 09:47:15 +0200 Subject: [PATCH] dns --- sio1/02-tpdns/db.domaine.lan | 19 +++++++++++++++++++ sio1/02-tpdns/db.domaine.lan.rev | 19 +++++++++++++++++++ sio1/02-tpdns/named.conf.local | 20 ++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 sio1/02-tpdns/db.domaine.lan create mode 100644 sio1/02-tpdns/db.domaine.lan.rev create mode 100644 sio1/02-tpdns/named.conf.local diff --git a/sio1/02-tpdns/db.domaine.lan b/sio1/02-tpdns/db.domaine.lan new file mode 100644 index 0000000..6b33bbe --- /dev/null +++ b/sio1/02-tpdns/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. ( + 2021022600 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; + NS srv1.domaine.lan. +$ORIGIN domaine.lan. +srv1 A 192.168.0.71 +srv2 A 192.168.0.73 + +xp1 A 192.168.0.72 +www CNAME srv2 + diff --git a/sio1/02-tpdns/db.domaine.lan.rev b/sio1/02-tpdns/db.domaine.lan.rev new file mode 100644 index 0000000..20b0490 --- /dev/null +++ b/sio1/02-tpdns/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. ( + 2021022600 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; + IN NS srv1.domaine.lan. + IN NS srv2.domaine.lan. + + +71 IN PTR srv1.domaine.lan. +72 IN PTR xp1.domaine.lan. +73 IN PTR srv2.domaine.lan. + diff --git a/sio1/02-tpdns/named.conf.local b/sio1/02-tpdns/named.conf.local new file mode 100644 index 0000000..dcb29dc --- /dev/null +++ b/sio1/02-tpdns/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"; + }; + + // zone inverse + zone "0.168.192.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.domaine.lan.rev"; + };