nouveau fichier : sisr1/srv-dhcp/dhcpd.conf

nouveau fichier : sisr1/srv-dhcp/interfaces
	nouveau fichier : sisr1/srv-dhcp/isc-dhcp-server
	nouveau fichier : sisr1/srv-dhcp/nat.sh
	nouveau fichier : sisr1/srv-dns1/db.sio1lab.lan
	nouveau fichier : sisr1/srv-dns1/db.sio1lab.lan.rev
	nouveau fichier : sisr1/srv-dns1/interfaces
	nouveau fichier : sisr1/srv-dns1/named.conf.local
	nouveau fichier : sisr1/srv-dns1/named.conf.options
	nouveau fichier : sisr1/srv-dns1/resolv.conf
	nouveau fichier : sisr1/srv-dns1/sshd_config
	nouveau fichier : sisr1/srv-dns2/db.sio1lab.lan
	nouveau fichier : sisr1/srv-dns2/db.sio1lab.lan.rev
	nouveau fichier : sisr1/srv-dns2/interfaces
	nouveau fichier : sisr1/srv-dns2/named.conf.local
	nouveau fichier : sisr1/srv-dns2/named.conf.options
	nouveau fichier : sisr1/srv-dns2/resolv.conf
This commit is contained in:
Jibril Bouhbas
2024-01-30 16:13:20 +01:00
commit 64a291a07a
17 changed files with 495 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA deb-dns1-jb.sio1lab.lan. root.sio1lab.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS deb-dns1-jb.
deb-dns1-jb IN A 192.168.0.160
deb-dhcp-jb IN A 192.168.0.161
dhcp IN CNAME deb-dhcp-jb
dns1 IN CNAME deb-dns1-jb

View File

@@ -0,0 +1,22 @@
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA deb-dns1-jb.sio1lab.lan. root.sio1lab.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS deb-dns1-jb.sio1lab.lan.
deb-dns1-jb IN A 192.168.0.120
deb-dhcp-jb IN A 192.168.0.121
dhcp IN CNAME deb-dhcp-jb
dns1 IN CNAME deb-dns1-jb
160 IN PTR deb-dhcp-jb
161 IN PTR deb-dns1-jb

19
sisr1/srv-dns2/interfaces Normal file
View File

@@ -0,0 +1,19 @@
# 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 static
address 192.168.0.161/24
gateway 192.168.0.1
auto enp0s8
iface eth0 inet static
address 192.168.2.1/24

View File

@@ -0,0 +1,19 @@
//
// Do any local configuration here
//
// zone directe
zone "sio1lab.lan" {
type master;
file "/etc/bind/db.sio1lab.lan";
};
// zone inverse
zone "0.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.sio1lab.lan.rev";
};
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

View File

@@ -0,0 +1,25 @@
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
10.121.38.7;
10.121.38.8;
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
listen-on-v6 { any; };
};

View File

@@ -0,0 +1,4 @@
domain sio1lab.lan
search sio1lab.lan
nameserver 127.0.0.1