Compare commits
2 Commits
c3e34e9df5
...
84549dbd4d
| Author | SHA1 | Date | |
|---|---|---|---|
| 84549dbd4d | |||
| e7208f5ade |
4
SCR3.2/TP04/ddns.key
Normal file
4
SCR3.2/TP04/ddns.key
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
key "tp.scr-key" {
|
||||||
|
algorithm hmac-md5;
|
||||||
|
secret "isfoZ1noj0MAJUxImFn1ZQ==";
|
||||||
|
};
|
||||||
16
SCR3.2/TP04/isis-dhcpd.conf
Normal file
16
SCR3.2/TP04/isis-dhcpd.conf
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||||
|
range 192.168.1.11 192.168.1.254;
|
||||||
|
option domain-name "tp.scr";
|
||||||
|
option domain-name-servers 192.168.1.158;
|
||||||
|
option routers 192.168.1.10;
|
||||||
|
default-lease-time 600;
|
||||||
|
max-lease-time 7200;
|
||||||
|
zone tp.scr.
|
||||||
|
{
|
||||||
|
primary 192.168.1.158;
|
||||||
|
}
|
||||||
|
zone 1.168.192.in-addr.arpa.
|
||||||
|
{
|
||||||
|
primary 192.168.1.158;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
;
|
;
|
||||||
$TTL 604800
|
$TTL 604800
|
||||||
@ IN SOA osiris.tp.scr. root.tp.scr. (
|
@ IN SOA osiris.tp.scr. root.tp.scr. (
|
||||||
2 ; Serial
|
3 ; Serial
|
||||||
604800 ; Refresh
|
604800 ; Refresh
|
||||||
86400 ; Retry
|
86400 ; Retry
|
||||||
2419200 ; Expire
|
2419200 ; Expire
|
||||||
@@ -11,7 +11,4 @@ $TTL 604800
|
|||||||
;
|
;
|
||||||
@ IN NS osiris.tp.scr.
|
@ IN NS osiris.tp.scr.
|
||||||
osiris.tp.scr. IN A 192.168.1.158
|
osiris.tp.scr. IN A 192.168.1.158
|
||||||
eno.tp.scr. IN A 192.168.1.1
|
isis.tp.scr. IN A 192.168.1.10
|
||||||
owt.tp.scr. IN A 192.168.1.2
|
|
||||||
eerht.tp.scr. IN A 192.168.1.3
|
|
||||||
ruof.tp.scr. IN A 192.168.1.4
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
;
|
;
|
||||||
$TTL 604800
|
$TTL 604800
|
||||||
@ IN SOA osiris.tp.scr. root.tp.scr. (
|
@ IN SOA osiris.tp.scr. root.tp.scr. (
|
||||||
1 ; Serial
|
2 ; Serial
|
||||||
604800 ; Refresh
|
604800 ; Refresh
|
||||||
86400 ; Retry
|
86400 ; Retry
|
||||||
2419200 ; Expire
|
2419200 ; Expire
|
||||||
@@ -11,7 +11,4 @@ $TTL 604800
|
|||||||
;
|
;
|
||||||
@ IN NS osiris.tp.scr.
|
@ IN NS osiris.tp.scr.
|
||||||
158.1.168.192.in-addr.arpa IN PTR osiris.tp.scr.
|
158.1.168.192.in-addr.arpa IN PTR osiris.tp.scr.
|
||||||
1.1.168.192.in-addr.arpa IN PTR eno.tp.scr.
|
10.1.168.192.in-addr.arpa IN PTR isis.tp.scr.
|
||||||
2.1.168.192.in-addr.arpa IN PTR owt.tp.scr.
|
|
||||||
3.1.168.192.in-addr.arpa IN PTR eerht.tp.scr.
|
|
||||||
4.1.168.192.in-addr.arpa IN PTR ruof.tp.scr.
|
|
||||||
@@ -1,19 +1,35 @@
|
|||||||
//
|
include "/etc/bind/ddns.key";
|
||||||
// Do any local configuration here
|
|
||||||
//
|
|
||||||
|
|
||||||
// Consider adding the 1918 zones here, if they are not used in your
|
//SANS CLE
|
||||||
// organization
|
|
||||||
//include "/etc/bind/zones.rfc1918";
|
|
||||||
|
|
||||||
zone "tp.scr"
|
zone "tp.scr"
|
||||||
{
|
{
|
||||||
type master;
|
type master;
|
||||||
file "/etc/bind/db.tp.scr";
|
file "/etc/bind/db.tp.scr";
|
||||||
|
allow-update { 192.168.1.10; };
|
||||||
|
};
|
||||||
|
zone "1.168.192.in-addr.arpa"
|
||||||
|
{
|
||||||
|
type master;
|
||||||
|
file "/etc/bind/db.tp.scr.inv";
|
||||||
|
allow-update { 192.168.1.10; };
|
||||||
|
};
|
||||||
|
|
||||||
|
//Avec CLE
|
||||||
|
zone "tp.scr"
|
||||||
|
{
|
||||||
|
type master;
|
||||||
|
// 2. Modification du chemin vers le répertoire inscriptible pour DDNS (I.4)
|
||||||
|
file "/var/cache/bind/db.tp.scr";
|
||||||
|
// 3. Ajout de la clause allow-update avec la clé TSIG (II.2)
|
||||||
|
allow-update { key "tp.scr-key"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
zone "1.168.192.in-addr.arpa"
|
zone "1.168.192.in-addr.arpa"
|
||||||
{
|
{
|
||||||
type master;
|
type master;
|
||||||
file "/etc/bind/db.tp.scr.inv";
|
// 2. Modification du chemin vers le répertoire inscriptible pour DDNS (I.4)
|
||||||
|
file "/var/cache/bind/db.tp.scr.inv";
|
||||||
|
// 3. Ajout de la clause allow-update avec la clé TSIG (II.2)
|
||||||
|
allow-update { key "tp.scr-key"; };
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user