Ajout des fichiers du srv-dns2
This commit is contained in:
		
							
								
								
									
										18
									
								
								sisr1/tp03-reseau-prive/srv-dns2/cartes_reseau/interfaces
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								sisr1/tp03-reseau-prive/srv-dns2/cartes_reseau/interfaces
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
# Assignation static IP adresse
 | 
			
		||||
#auto enp0s3
 | 
			
		||||
#iface enp0s3 inet static
 | 
			
		||||
#	address 172.16.0.200/24
 | 
			
		||||
#	gateway 172.16.0.1
 | 
			
		||||
							
								
								
									
										28
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/db.monlabo.lan
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/db.monlabo.lan
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
;
 | 
			
		||||
; BIND data file for local loopback interface
 | 
			
		||||
;
 | 
			
		||||
$TTL	604800
 | 
			
		||||
@	IN	SOA	srv-service.monlabo.lan. root.srv-service.monlabo.lan. (
 | 
			
		||||
			      2		; Serial
 | 
			
		||||
			 604800		; Refresh
 | 
			
		||||
			  86400		; Retry
 | 
			
		||||
			2419200		; Expire
 | 
			
		||||
			 604800 )	; Negative Cache TTL
 | 
			
		||||
		NS	srv-service.monlabo.lan.
 | 
			
		||||
		NS	srv-dns2.monlabo.lan.
 | 
			
		||||
srv-service.monlabo.lan.	A	172.16.0.254
 | 
			
		||||
srv-dns2.monlabo.lan.           A       172.16.0.253
 | 
			
		||||
srv-admin-jt.monlabo.lan.       A       172.16.0.1
 | 
			
		||||
 | 
			
		||||
srvdhcp         IN      CNAME   srv-service.monlabo.lan.
 | 
			
		||||
dhcp            IN      CNAME   srv-service.monlabo.lan.
 | 
			
		||||
srvdns          IN      CNAME   srv-service.monlabo.lan.
 | 
			
		||||
dns             IN      CNAME   srv-service.monlabo.lan.
 | 
			
		||||
srvdns1         IN      CNAME   srv-service.monlabo.lan.
 | 
			
		||||
dns1            IN      CNAME   srv-service.monlabo.lan.
 | 
			
		||||
srvdns2         IN      CNAME   srv-dns2.monlabo.lan.   
 | 
			
		||||
dns2            IN      CNAME   srv-dns2.monlabo.lan.
 | 
			
		||||
srvadmin        IN      CNAME   srv-admin-jt.monlabo.lan.
 | 
			
		||||
router          IN      CNAME   srv-admin-jt.monlabo.lan.
 | 
			
		||||
gateway         IN      CNAME   srv-admin-jt.monlabo.lan.
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										26
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/db.monlabo.lan.rev
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/db.monlabo.lan.rev
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
$ORIGIN .
 | 
			
		||||
$TTL 604800	; 1 week
 | 
			
		||||
0.16.172.in-addr.arpa	IN SOA	srv-service.monlabo.lan. root.srv-service.monlabo.lan. (
 | 
			
		||||
				2          ; serial
 | 
			
		||||
				604800     ; refresh (1 week)
 | 
			
		||||
				86400      ; retry (1 day)
 | 
			
		||||
				2419200    ; expire (4 weeks)
 | 
			
		||||
				604800     ; minimum (1 week)
 | 
			
		||||
				)
 | 
			
		||||
			NS	srv-dns2.monlabo.lan.
 | 
			
		||||
			NS	srv-service.monlabo.lan.
 | 
			
		||||
$ORIGIN 0.16.172.in-addr.arpa.
 | 
			
		||||
1			PTR	srv-admin-jt.monlabo.lan.
 | 
			
		||||
253			PTR	srv-dns2.monlabo.lan.
 | 
			
		||||
254			PTR	svr-service.monlabo.lan.
 | 
			
		||||
dhcp			CNAME	srv-service.monlabo.lan.
 | 
			
		||||
dns			CNAME	srv-service.monlabo.lan.
 | 
			
		||||
dns1			CNAME	srv-service.monlabo.lan.
 | 
			
		||||
dns2			CNAME	srv-dns2.monlabo.lan.
 | 
			
		||||
gateway			CNAME	srv-admin-jt.monlabo.lan.
 | 
			
		||||
router			CNAME	srv-admin-jt.monlabo.lan.
 | 
			
		||||
srvadmin		CNAME	srv-admin-jt.monlabo.lan.
 | 
			
		||||
srvdhcp			CNAME	srv-service.monlabo.lan.
 | 
			
		||||
srvdns			CNAME	srv-service.monlabo.lan.
 | 
			
		||||
srvdns1			CNAME	srv-service.monlabo.lan.
 | 
			
		||||
srvdns2			CNAME	srv-dns2.monlabo.lan.
 | 
			
		||||
							
								
								
									
										24
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/named.conf.local
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/named.conf.local
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
//
 | 
			
		||||
// Do any local configuration here
 | 
			
		||||
//
 | 
			
		||||
	// zone direct
 | 
			
		||||
	zone "monlabo.lan" {
 | 
			
		||||
		type slave;
 | 
			
		||||
		file "/etc/bind/db.monlabo.lan";
 | 
			
		||||
		masters {172.16.0.254;} ;
 | 
			
		||||
		masterfile-format text;
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	// zone inverse
 | 
			
		||||
	zone "0.16.172.in-addr.arpa" {
 | 
			
		||||
		type slave;
 | 
			
		||||
		notify no;
 | 
			
		||||
		file "/etc/bind/db.monlabo.lan.rev";
 | 
			
		||||
		masters { 172.16.0.254; } ;
 | 
			
		||||
		masterfile-format text;
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
// Consider adding the 1918 zones here, if they are not used in your
 | 
			
		||||
// organization
 | 
			
		||||
//include "/etc/bind/zones.rfc1918";
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										24
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/named.conf.options
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								sisr1/tp03-reseau-prive/srv-dns2/dns/named.conf.options
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
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 {
 | 
			
		||||
	// 	0.0.0.0;
 | 
			
		||||
	// };
 | 
			
		||||
 | 
			
		||||
	//========================================================================
 | 
			
		||||
	// 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; };
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user