ajout 02-tpdns
This commit is contained in:
commit
052057411f
18
sio1/tp/02-tpdns/ns1/db.detete.lan
Normal file
18
sio1/tp/02-tpdns/ns1/db.detete.lan
Normal file
@ -0,0 +1,18 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA ns1.detete.lan. root.ns1.detete.lan. (
|
||||
2021062300 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
NS ns1.detete.lan.
|
||||
NS ns2.detete.lan.
|
||||
ns1.detete.lan. A 192.168.1.60
|
||||
ns2.detete.lan. A 192.168.1.59
|
||||
xp1.detete.lan. A 192.168.1.61
|
||||
xp2.detete.lan. A 192.168.1.62
|
||||
WWW CNAME xp2
|
18
sio1/tp/02-tpdns/ns1/db.detete.lan.rev
Normal file
18
sio1/tp/02-tpdns/ns1/db.detete.lan.rev
Normal file
@ -0,0 +1,18 @@
|
||||
;
|
||||
; BIND reverse data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA ns1.detete.lan. root.detete.lan. (
|
||||
3 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
|
||||
NS ns1.detete.lan.
|
||||
NS ns2.detete.lan.
|
||||
60 IN PTR ns1.detete.lan.
|
||||
59 IN PTR ns2.detete.lan.
|
||||
61 IN PTR xp1.detete.lan.
|
||||
62 IN PTR xp2.detete.lan.
|
18
sio1/tp/02-tpdns/ns1/db.detete.lan.save
Normal file
18
sio1/tp/02-tpdns/ns1/db.detete.lan.save
Normal file
@ -0,0 +1,18 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA ns1.detete.lan. root.ns1.detete.lan (
|
||||
3 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
NS ns1.detete.lan.
|
||||
NS ns2.detete.lan.
|
||||
ns1.detete.lan. A 192.168.1.60
|
||||
ns2.detete.lan. A 192.168.1.59
|
||||
xp1.detete.lan. A 192.168.1.61
|
||||
xp2.detete.lan. A 192.168.1.62
|
||||
WWW CNAME xp2
|
18
sio1/tp/02-tpdns/ns1/db.detete.lan.save.1
Normal file
18
sio1/tp/02-tpdns/ns1/db.detete.lan.save.1
Normal file
@ -0,0 +1,18 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA ns1.detete.lan. root.ns1.detete.lan. (
|
||||
2021062300 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
NS ns1.detete.lan.
|
||||
NS ns2.detete.lan.
|
||||
ns1.detete.lan. A 192.168.1.60
|
||||
ns2.detete.lan. A 192.168.1.59
|
||||
xp1.detete.lan. A 192.168.1.61
|
||||
xp2.detete.lan. A 192.168.1.62
|
||||
WWW CNAME xp2
|
1
sio1/tp/02-tpdns/ns1/hostname
Normal file
1
sio1/tp/02-tpdns/ns1/hostname
Normal file
@ -0,0 +1 @@
|
||||
ns1.detete.lan
|
7
sio1/tp/02-tpdns/ns1/hosts
Normal file
7
sio1/tp/02-tpdns/ns1/hosts
Normal file
@ -0,0 +1,7 @@
|
||||
127.0.0.1 localhost
|
||||
127.0.1.1 ns1.detete.lan ns1
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 localhost ip6-localhost ip6-loopback
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
14
sio1/tp/02-tpdns/ns1/interfaces
Normal file
14
sio1/tp/02-tpdns/ns1/interfaces
Normal file
@ -0,0 +1,14 @@
|
||||
# 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.1.60/24
|
||||
gateway 192.168.1.254
|
11
sio1/tp/02-tpdns/ns1/named.conf
Normal file
11
sio1/tp/02-tpdns/ns1/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";
|
30
sio1/tp/02-tpdns/ns1/named.conf.default-zones
Normal file
30
sio1/tp/02-tpdns/ns1/named.conf.default-zones
Normal file
@ -0,0 +1,30 @@
|
||||
// prime the server with knowledge of the root servers
|
||||
zone "." {
|
||||
type hint;
|
||||
file "/usr/share/dns/root.hints";
|
||||
};
|
||||
|
||||
// be authoritative for the localhost forward and reverse zones, and for
|
||||
// broadcast zones as per RFC 1912
|
||||
|
||||
zone "localhost" {
|
||||
type master;
|
||||
file "/etc/bind/db.local";
|
||||
};
|
||||
|
||||
zone "127.in-addr.arpa" {
|
||||
type master;
|
||||
file "/etc/bind/db.127";
|
||||
};
|
||||
|
||||
zone "0.in-addr.arpa" {
|
||||
type master;
|
||||
file "/etc/bind/db.0";
|
||||
};
|
||||
|
||||
zone "255.in-addr.arpa" {
|
||||
type master;
|
||||
file "/etc/bind/db.255";
|
||||
};
|
||||
|
||||
|
10
sio1/tp/02-tpdns/ns1/named.conf.local
Normal file
10
sio1/tp/02-tpdns/ns1/named.conf.local
Normal file
@ -0,0 +1,10 @@
|
||||
zone "detete.lan" {
|
||||
type master;
|
||||
file "/etc/bind/db.detete.lan";
|
||||
};
|
||||
|
||||
zone "1.168.192.in-addr.arpa" {
|
||||
type master;
|
||||
notify no;
|
||||
file "/etc/bind/db.detete.lan.rev";
|
||||
};
|
11
sio1/tp/02-tpdns/ns1/named.conf.options
Normal file
11
sio1/tp/02-tpdns/ns1/named.conf.options
Normal file
@ -0,0 +1,11 @@
|
||||
options {
|
||||
directory "/var/cache/bind";
|
||||
|
||||
forwarders {
|
||||
192.168.1.254;
|
||||
};
|
||||
|
||||
dnssec-validation auto;
|
||||
|
||||
listen-on-v6 { any; };
|
||||
};
|
3
sio1/tp/02-tpdns/ns1/resolv.conf
Normal file
3
sio1/tp/02-tpdns/ns1/resolv.conf
Normal file
@ -0,0 +1,3 @@
|
||||
domain detete.lan
|
||||
search detete.lan
|
||||
nameserver 127.0.0.1
|
Loading…
x
Reference in New Issue
Block a user