4 069
contributi
Riga 345: | Riga 345: | ||
file "/etc/bind/db.192.168.1"; | file "/etc/bind/db.192.168.1"; | ||
allow-update { key rndc-key; }; | allow-update { key rndc-key; }; | ||
}; | |||
</pre> | |||
Il file completo dovrebbe avere questo contenuto: | |||
<pre> | |||
acl internals { | |||
127.0.0.0/8; | |||
192.168.1.0/24; | |||
}; | |||
include "/etc/bind/rndc.key"; | |||
controls { | |||
inet 127.0.0.1 allow {localhost; } keys { "rndc-key"; }; | |||
}; | |||
view "internal" { | |||
match-clients { internals; }; | |||
recursion yes; | |||
zone "test.lan" { | |||
type master; | |||
file "/etc/bind/db.test"; | |||
journal "/var/cache/bind/db.test.jnl"; | |||
allow-update { key rndc-key; }; | |||
}; | |||
zone "1.168.192.in-addr.arpa" { | |||
type master; | |||
file "/etc/bind/db.192.168.1"; | |||
journal "/var/cache/bind/db.192.168.1.jnl"; | |||
allow-update { key rndc-key; }; | |||
}; | |||
}; | }; | ||
</pre> | </pre> |