Annexe pour le "web-hosting"
=== A rajouter dans /etc/bind/named.conf
zone "domain1.org" {
type master;
file "/etc/bind/domain1.org.hosts";
};
zone "domain2.org" {
type master;
file "/etc/bind/domain2.org.hosts";
};
=== fichiers de zone
root@freeduc-sup:/etc/bind# more domain1.org.hosts
$ttl 38400
@ IN SOA domain1.org. hostmaster.domain1.org. (
2004052604
10800
3600
604800
38400 )
@ IN NS ns1.domain1.org.
ns1 IN A 192.168.0.1
www IN CNAME ns1
wiki IN CNAME ns1
w3 IN CNAME ns1
root@freeduc-sup:/etc/bind# more domain2.org.hosts
$ttl 38400
@ IN SOA domain2.org. hostmaster.domain2.org. (
2004052604
10800
3600
604800
38400 )
@ IN NS ns1.domain2.org.
ns1 IN A 192.168.1.1
www IN CNAME ns1