dns1
This commit is contained in:
parent
dbbd8f7322
commit
a70045ead7
20
sisr1/tp02-dns/dns/db.sio-el.lan
Normal file
20
sisr1/tp02-dns/dns/db.sio-el.lan
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
;
|
||||||
|
; BIND data file for local loopback interface
|
||||||
|
;
|
||||||
|
$TTL 604800
|
||||||
|
@ IN SOA dns-el.sio-el.lan. root.dns-el.sio-el.lan. (
|
||||||
|
2 ; Serial
|
||||||
|
604800 ; Refresh
|
||||||
|
86400 ; Retry
|
||||||
|
2419200 ; Expire
|
||||||
|
604800 ) ; Negative Cache TTL
|
||||||
|
@ NS dns-el.sio-el.lan.
|
||||||
|
@ NS dns2-el.sio-el.lan
|
||||||
|
dns-el.sio-el.lan. A 192.168.0.141
|
||||||
|
deb-dhcp-el.sio-el.lan. A 192.168.0.140
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
@ IN NS localhost.
|
||||||
|
dns2-el A 192.168.0.142
|
||||||
|
|
18
sisr1/tp02-dns/dns/db.sio-el.lan.rev
Normal file
18
sisr1/tp02-dns/dns/db.sio-el.lan.rev
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
;
|
||||||
|
; BIND data file for local loopback interface
|
||||||
|
;
|
||||||
|
$TTL 604800
|
||||||
|
@ IN SOA dns-el.sio-el.lan. root.dns-el.sio-el.lan. (
|
||||||
|
2 ; Serial
|
||||||
|
604800 ; Refresh
|
||||||
|
86400 ; Retry
|
||||||
|
2419200 ; Expire
|
||||||
|
604800 ) ; Negative Cache TTL
|
||||||
|
NS dns-el.sio-el.lan.
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
140 IN PTR deb-dhcp-el.sio-el.lan.
|
||||||
|
141 IN PTR dns-el.sio-el.lan.
|
||||||
|
|
||||||
|
|
11
sisr1/tp02-dns/dns/named.conf
Normal file
11
sisr1/tp02-dns/dns/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 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";
|
13
sisr1/tp02-dns/dns/named.conf.local
Normal file
13
sisr1/tp02-dns/dns/named.conf.local
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// zone directe
|
||||||
|
zone "sio-el.lan" {
|
||||||
|
type master;
|
||||||
|
file "/etc/bind/db.sio-el.lan";
|
||||||
|
};
|
||||||
|
|
||||||
|
// zone inverse
|
||||||
|
zone "0.168.192.in-addr.arpa" {
|
||||||
|
type master;
|
||||||
|
notify no;
|
||||||
|
file "/etc/bind/db.sio-el.lan.rev";
|
||||||
|
};
|
||||||
|
|
24
sisr1/tp02-dns/dns/named.conf.options
Normal file
24
sisr1/tp02-dns/dns/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; };
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user