35 lines
831 B
Plaintext
35 lines
831 B
Plaintext
include "/etc/bind/ddns.key";
|
|
|
|
//SANS CLE
|
|
|
|
zone "tp.scr"
|
|
{
|
|
type master;
|
|
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"
|
|
{
|
|
type master;
|
|
// 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"; };
|
|
}; |