Second Commit : Serveur Maitre
This commit is contained in:
parent
d76c9b8afa
commit
078b3a300c
20
Sio1/SISR1/20-DNS/Master/db.domaine.lan
Normal file
20
Sio1/SISR1/20-DNS/Master/db.domaine.lan
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
;
|
||||||
|
; BIND data file for local loopback interface
|
||||||
|
;
|
||||||
|
$TTL 604800
|
||||||
|
domaine.lan. IN SOA srv1.domaine.lan. root.srv1.domaine.lan. (
|
||||||
|
2022020100 ; Serial
|
||||||
|
604800 ; Refresh
|
||||||
|
86400 ; Retry
|
||||||
|
2419200 ; Expire
|
||||||
|
604800 ) ; Negative Cache TTL
|
||||||
|
;
|
||||||
|
@ IN NS srv1.domaine.lan.
|
||||||
|
srv1 IN A 192.168.0.110
|
||||||
|
@ IN NS srv2.domaine.lan.
|
||||||
|
srv2 IN A 192.168.0.114
|
||||||
|
|
||||||
|
;@ IN AAAA ::1
|
||||||
|
poste1 IN A 192.168.0.111
|
||||||
|
poste2 IN A 192.168.0.112
|
||||||
|
www2 IN CNAME poste1
|
14
Sio1/SISR1/20-DNS/Master/db.domaine.lan.rev
Normal file
14
Sio1/SISR1/20-DNS/Master/db.domaine.lan.rev
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
$TTL 38400 ; 10 hours 40 minutes
|
||||||
|
@ IN SOA srv1.domaine.lan. root.srv1.domaine.lan. (
|
||||||
|
2022020100 ; serial
|
||||||
|
10800 ; refresh (3 hours)
|
||||||
|
3600 ; retry (1 hour)
|
||||||
|
604800 ; expire (1 week)
|
||||||
|
38400 ; minimum (10 hours 40 minutes)
|
||||||
|
)
|
||||||
|
IN NS srv1.domaine.lan.
|
||||||
|
IN NS srv2.domaine.lan.
|
||||||
|
|
||||||
|
110 IN PTR srv1.domaine.lan.
|
||||||
|
111 IN PTR xp.domaine.lan.
|
||||||
|
114 IN PTR srv2.domaine.lan.
|
11
Sio1/SISR1/20-DNS/Master/named.conf
Normal file
11
Sio1/SISR1/20-DNS/Master/named.conf
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// This is the primary configuration file for the BIND DNS server named.
|
||||||
|
//
|
||||||
|
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
|
||||||
|
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
||||||
|
// this configuration file.
|
||||||
|
//
|
||||||
|
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
||||||
|
|
||||||
|
include "/etc/bind/named.conf.options";
|
||||||
|
include "/etc/bind/named.conf.local";
|
||||||
|
include "/etc/bind/named.conf.default-zones";
|
20
Sio1/SISR1/20-DNS/Master/named.conf.local
Normal file
20
Sio1/SISR1/20-DNS/Master/named.conf.local
Normal file
@ -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 "domaine.lan" {
|
||||||
|
type master;
|
||||||
|
file "/etc/bind/db.domaine.lan";
|
||||||
|
};
|
||||||
|
|
||||||
|
// zone inverse
|
||||||
|
zone "0.168.192.in-addr.arpa" {
|
||||||
|
type master;
|
||||||
|
notify no;
|
||||||
|
file "/etc/bind/db.domaine.lan.rev";
|
||||||
|
};
|
3
Sio1/SISR1/20-DNS/Master/resolv.conf
Normal file
3
Sio1/SISR1/20-DNS/Master/resolv.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
domain domaine.lan
|
||||||
|
search domaine.lan
|
||||||
|
nameserver 127.0.0.1
|
20
Sio1/SISR1/20-DNS/Slave/named.conf.local
Normal file
20
Sio1/SISR1/20-DNS/Slave/named.conf.local
Normal file
@ -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 "domaine.lan" {
|
||||||
|
type master;
|
||||||
|
file "/etc/bind/db.domaine.lan";
|
||||||
|
};
|
||||||
|
|
||||||
|
// zone inverse
|
||||||
|
zone "0.168.192.in-addr.arpa" {
|
||||||
|
type master;
|
||||||
|
notify no;
|
||||||
|
file "/etc/bind/db.domaine.lan.rev";
|
||||||
|
};
|
24
Sio1/SISR1/20-DNS/Slave/named.conf.options
Normal file
24
Sio1/SISR1/20-DNS/Slave/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 {
|
||||||
|
10.121.38.7;
|
||||||
|
};
|
||||||
|
|
||||||
|
//========================================================================
|
||||||
|
// 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 no;
|
||||||
|
|
||||||
|
listen-on-v6 { any; };
|
||||||
|
};
|
3
Sio1/SISR1/20-DNS/Slave/resolv.conf
Normal file
3
Sio1/SISR1/20-DNS/Slave/resolv.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
domain domaine.lan
|
||||||
|
search domaine.lan
|
||||||
|
nameserver 127.0.0.1
|
Loading…
x
Reference in New Issue
Block a user