From e264b4cd7b9ebc14db55c92ce3426b2935a08f07 Mon Sep 17 00:00:00 2001 From: Diemert Ludovic Date: Fri, 28 May 2021 09:44:50 +0200 Subject: [PATCH] DNS1 --- 02-tpdns/srv1maitre/named.conf | 11 +++++++++++ 02-tpdns/srv1maitre/named.conf.local | 20 ++++++++++++++++++++ 02-tpdns/srv1maitre/resolv.conf | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 02-tpdns/srv1maitre/named.conf create mode 100644 02-tpdns/srv1maitre/named.conf.local create mode 100644 02-tpdns/srv1maitre/resolv.conf diff --git a/02-tpdns/srv1maitre/named.conf b/02-tpdns/srv1maitre/named.conf new file mode 100644 index 0000000..880786a --- /dev/null +++ b/02-tpdns/srv1maitre/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/02-tpdns/srv1maitre/named.conf.local b/02-tpdns/srv1maitre/named.conf.local new file mode 100644 index 0000000..28930d4 --- /dev/null +++ b/02-tpdns/srv1maitre/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 "1.168.192.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.domaine.lan.rev"; +}; diff --git a/02-tpdns/srv1maitre/resolv.conf b/02-tpdns/srv1maitre/resolv.conf new file mode 100644 index 0000000..2f06cc1 --- /dev/null +++ b/02-tpdns/srv1maitre/resolv.conf @@ -0,0 +1,3 @@ +domain domaine.lan +search domaine.lan +nameserver 127.0.0.1