ajout 02-tpdns

This commit is contained in:
root 2021-06-24 14:44:16 +02:00
commit 052057411f
12 changed files with 159 additions and 0 deletions

View 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

View 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.

View 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

View 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

View File

@ -0,0 +1 @@
ns1.detete.lan

View 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

View 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

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,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";
};

View 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";
};

View File

@ -0,0 +1,11 @@
options {
directory "/var/cache/bind";
forwarders {
192.168.1.254;
};
dnssec-validation auto;
listen-on-v6 { any; };
};

View File

@ -0,0 +1,3 @@
domain detete.lan
search detete.lan
nameserver 127.0.0.1