From 116065a9bd4565e79d6600f07e3538dbba62c747 Mon Sep 17 00:00:00 2001 From: "anthony.boillot" Date: Mon, 3 Feb 2025 10:58:08 +0100 Subject: [PATCH] dns1 fini --- sisr1/tp02-dns/dns1/db.sio-ab.lan | 20 ++++++++++++++++++++ sisr1/tp02-dns/dns1/named.conf.local | 20 ++++++++++++++++++++ sisr1/tp02-dns/dns1/resolv.conf | 4 ++++ 3 files changed, 44 insertions(+) create mode 100644 sisr1/tp02-dns/dns1/db.sio-ab.lan create mode 100644 sisr1/tp02-dns/dns1/named.conf.local create mode 100644 sisr1/tp02-dns/dns1/resolv.conf diff --git a/sisr1/tp02-dns/dns1/db.sio-ab.lan b/sisr1/tp02-dns/dns1/db.sio-ab.lan new file mode 100644 index 0000000..5bdc758 --- /dev/null +++ b/sisr1/tp02-dns/dns1/db.sio-ab.lan @@ -0,0 +1,20 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA dns1-ab.sio-ab.lan. root.dns1-ab.sio-ab.lan. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL + NS dns1-ab.sio-ab.lan. + NS dns2-ab.sio-ab.lan. + A 192.168.0.162 +dns1-ab.sio-ab.lan. A 192.168.0.161 +; +@ IN NS localhost. +@ IN A 127.0.0.1 +@ IN A 192.168.0.160 +@ IN AAAA ::1 +; diff --git a/sisr1/tp02-dns/dns1/named.conf.local b/sisr1/tp02-dns/dns1/named.conf.local new file mode 100644 index 0000000..6701173 --- /dev/null +++ b/sisr1/tp02-dns/dns1/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 "sio-ab.lan" { + type master; + file "/etc/bind/db.sio-ab.lan"; + }; + + // zone inverse + zone "0.168.192.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.sio-ab.lan.rev"; + }; diff --git a/sisr1/tp02-dns/dns1/resolv.conf b/sisr1/tp02-dns/dns1/resolv.conf new file mode 100644 index 0000000..1c60899 --- /dev/null +++ b/sisr1/tp02-dns/dns1/resolv.conf @@ -0,0 +1,4 @@ +domain sio-ab.lan +search sio-ab.lan +nameserver 192.168.0.161 +nameserver 10.121.38.7