1er commite

This commit is contained in:
Ugo IDEZ 2021-05-28 09:48:38 +02:00
commit c4a09f45cd
4 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,24 @@
;
; BIND data file for local loopback interface
;
$TTL 604800
domaine.lan. IN SOA srv1.domaine.lan. root.srv1.domaine.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
NS srv1.domaine.lan.
NS srv2.domaine.lan.
srv1.domaine.lan. A 192.168.0.30
srv2.domaine.lan. A 192.168.0.26
$ORIGIN domaine.lan.
xp-master A 192.168.0.31
xp2 A 192.168.0.32
xp3 A 192.168.0.33
xp4 A 192.168.0.34
www CNAME srv1.domaine.lan.

View File

@ -0,0 +1,20 @@
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA srv1.domaine.lan. root.srv1.domaine.lan.(
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
NS srv1.domaine.lan.
NS srv2.domaine.lan.
NS xp-master.domaine.lan.
30 IN PTR srv1.domaine.lan.
31 IN PTR xp-master.domaine.lan.
26 IN PTR srv2.domaine.lan.

11
sio1/01-dns/named.conf Normal file
View 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";

View File

@ -0,0 +1,21 @@
//
// 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";
};