From 74db3e8588e2dc9f84fa6859991c3fd943c0fad4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Feb 2024 11:01:20 +0100 Subject: [PATCH] =?UTF-8?q?=09Modifi=C3=A9=C2=A0:=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20sisr1/tp03/srv-dns2-ge/named.conf.local=20=09Modifi=C3=A9?= =?UTF-8?q?=C2=A0:=20=20=20=20=20=20=20=20=20sisr1/tp03/srv-dns2-ge/named.?= =?UTF-8?q?conf.options=20=09Nouveau=20fichier=C2=A0:=20sisr1/tp03/srv-dns?= =?UTF-8?q?2-ge/resolv.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sisr1/tp03/srv-dns2-ge/named.conf.local | 15 ++++++++++----- sisr1/tp03/srv-dns2-ge/named.conf.options | 4 ++-- sisr1/tp03/srv-dns2-ge/resolv.conf | 3 +++ 3 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 sisr1/tp03/srv-dns2-ge/resolv.conf diff --git a/sisr1/tp03/srv-dns2-ge/named.conf.local b/sisr1/tp03/srv-dns2-ge/named.conf.local index dc57d68..82e1bfa 100644 --- a/sisr1/tp03/srv-dns2-ge/named.conf.local +++ b/sisr1/tp03/srv-dns2-ge/named.conf.local @@ -4,17 +4,22 @@ // zone directe zone "monlabo.lan" { - type master; - file "/etc/bind/db.monlabo.lan"; + type slave; + file "/etc/bind/db.monlabo.lan"; + masters { 172.16.0.1; }; + masterfile-format text; }; // zone inverse zone "0.16.172.in-addr.arpa" { - type master; - notify no; - file "/etc/bind/db.monlabo.lan.rev"; + type slave; + notify no; + file "/etc/bind/db.monlabo.lan.rev"; + masters { 172.16.0.1; }; + masterfile-format text; }; + // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; diff --git a/sisr1/tp03/srv-dns2-ge/named.conf.options b/sisr1/tp03/srv-dns2-ge/named.conf.options index 2273cea..61d68c2 100644 --- a/sisr1/tp03/srv-dns2-ge/named.conf.options +++ b/sisr1/tp03/srv-dns2-ge/named.conf.options @@ -10,10 +10,10 @@ options { // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. - forwarders { + forwarders { 10.121.38.7; 10.121.38.8; - }; + }; //======================================================================== // If BIND logs error messages about the root key being expired, diff --git a/sisr1/tp03/srv-dns2-ge/resolv.conf b/sisr1/tp03/srv-dns2-ge/resolv.conf new file mode 100644 index 0000000..70b715d --- /dev/null +++ b/sisr1/tp03/srv-dns2-ge/resolv.conf @@ -0,0 +1,3 @@ +domain monlabo.lan +search monlabo.lan +nameserver 172.16.0.2