reorg por 20-dns

This commit is contained in:
sio
2022-03-03 11:38:09 +01:00
parent 65e3a2eb15
commit 1b79c265fe
8 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
;
; BIND data file for local loopback interface
;
$TTL 604800
domaine.lan. IN SOA dns-srv1.domaine.lan. root.domaine.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns-srv1.domaine.lan.
@ IN NS dns-srv2.domaine.lan.
dns-srv1 IN A 192.168.0.130
dns-srv2 IN A 192.168.0.132
poste1 IN A 192.168.0.131
poste2 IN A 192.168.0.132
www IN CNAME poste1

View File

@@ -0,0 +1,17 @@
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA dns-srv1.domaine.lan. root.domaine.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns-srv1.domaine.lan.
@ IN NS dns-srv2.domaine.lan.
130 IN PTR dns-srv1.domaine.lan.
131 IN PTR xp.domaine.lan.
132 IN PTR dns-srv2.domaine.lan.

View File

@@ -0,0 +1 @@
dns-srv1

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.0.130/24
gateway 192.168.0.1

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

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

View File

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