From 75e6e843e5929050b05e55d16cc9080a9b54b7d8 Mon Sep 17 00:00:00 2001 From: "tom.guerin" Date: Thu, 6 Feb 2025 14:22:03 +0100 Subject: [PATCH] dns2 --- sisr1/tp02-dns/dns2/interfaces | 16 ++++++++++++++++ sisr1/tp02-dns/dns2/named.conf.local | 15 +++++++++++++++ sisr1/tp02-dns/dns2/resolv.conf | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 sisr1/tp02-dns/dns2/interfaces create mode 100644 sisr1/tp02-dns/dns2/named.conf.local create mode 100644 sisr1/tp02-dns/dns2/resolv.conf diff --git a/sisr1/tp02-dns/dns2/interfaces b/sisr1/tp02-dns/dns2/interfaces new file mode 100644 index 0000000..d3632d8 --- /dev/null +++ b/sisr1/tp02-dns/dns2/interfaces @@ -0,0 +1,16 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/* + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +allow-hotplug enp0s3 +#iface enp0s3 inet dhcp +iface enp0s3 inet static + address 192.168.0.122/24 + gateway 192.168.0.1 + diff --git a/sisr1/tp02-dns/dns2/named.conf.local b/sisr1/tp02-dns/dns2/named.conf.local new file mode 100644 index 0000000..a589c7e --- /dev/null +++ b/sisr1/tp02-dns/dns2/named.conf.local @@ -0,0 +1,15 @@ +// zone directe +zone "sio-tg.lan" { + type slave; + file "/etc/bind/db.sio-tg.lan"; + masters {192.168.0.121; }; + masterfile-format text; +}; + +// zone inverse +zone "0.168.192.in-addr.arpa" { + type slave; + notify no; + file "/etc/bind/db.sio-tg.lan.rev"; + masters { 192.168.0.121; }; +}; diff --git a/sisr1/tp02-dns/dns2/resolv.conf b/sisr1/tp02-dns/dns2/resolv.conf new file mode 100644 index 0000000..9b9afb3 --- /dev/null +++ b/sisr1/tp02-dns/dns2/resolv.conf @@ -0,0 +1,3 @@ +domain sio-tg.lan +search sio-tg.lan +nameserver 127.0.0.1