dns1
This commit is contained in:
parent
4461a69f61
commit
95882cf1b9
22
sisr1/tp02-dns/dns1/db.sio-ca.lan
Normal file
22
sisr1/tp02-dns/dns1/db.sio-ca.lan
Normal file
@ -0,0 +1,22 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA dns1-ca.sio-ca.lan. root.dns1.sio-ca.lan. (
|
||||
2 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
NS dns1-ca.sio-ca.lan.
|
||||
dns1-ca.sio-ca.lan. A 192.168.0.141
|
||||
|
||||
|
||||
@ IN NS localhost
|
||||
localhost IN A 127.0.0.1
|
||||
|
||||
deb-dhcp-ca IN A 192.168.0.140
|
||||
|
||||
dhcp CNAME deb-dhcp-ca.sio-ca.lan.
|
||||
dns CNAME dns1-ca.sio-ca.lan.
|
||||
|
24
sisr1/tp02-dns/dns1/db.sio-ca.lan.rev
Normal file
24
sisr1/tp02-dns/dns1/db.sio-ca.lan.rev
Normal file
@ -0,0 +1,24 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA dns1-ca.sio-ca.lan. root.dns1.sio-ca.lan. (
|
||||
2 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
NS dns1-ca.sio-ca.lan.
|
||||
;dns1-ca.sio-ca.lan. A 192.168.0.141
|
||||
|
||||
|
||||
@ IN NS localhost
|
||||
localhost IN A 127.0.0.1
|
||||
;deb-dhcp-ca IN A 192.168.0.140
|
||||
|
||||
141 IN PTR dns1-ca.sio-ca.lan.
|
||||
140 IN PTR deb-dhcp-ca.sio-ca.lan.
|
||||
|
||||
dhcp CNAME deb-dhcp-ca.sio-ca.lan.
|
||||
dns CNAME dns1-ca.sio-ca.lan.
|
||||
|
15
sisr1/tp02-dns/dns1/interfaces
Normal file
15
sisr1/tp02-dns/dns1/interfaces
Normal file
@ -0,0 +1,15 @@
|
||||
# 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
|
||||
# This is an autoconfigured IPv6 interface
|
||||
auto enp0s3
|
||||
iface enp0s3 inet static
|
||||
address 192.168.0.141/24
|
||||
gateway 192.168.0.1
|
12
sisr1/tp02-dns/dns1/named.conf.local
Normal file
12
sisr1/tp02-dns/dns1/named.conf.local
Normal file
@ -0,0 +1,12 @@
|
||||
// zone directe
|
||||
zone "sio-ca.lan" {
|
||||
type master;
|
||||
file "/etc/bind/db.sio-ca.lan";
|
||||
};
|
||||
|
||||
// zone inverse
|
||||
zone "0.168.192.in-addr.arpa" {
|
||||
type master;
|
||||
notify no;
|
||||
file "/etc/bind/db.sio-ca.lan.rev";
|
||||
};
|
3
sisr1/tp02-dns/dns1/resolv.conf
Normal file
3
sisr1/tp02-dns/dns1/resolv.conf
Normal file
@ -0,0 +1,3 @@
|
||||
domain sio-ca.lan
|
||||
search sio-ca.lan
|
||||
nameserver 127.0.0.1
|
Loading…
x
Reference in New Issue
Block a user