Itse Itselleni vastaten:
DNS domain ja subdomain merkinnät tulevat tiedostoon /etc/bind/named.conf.local ja tiedostoon mikä on määritelty edellisessä. Esim: /etc/bind/db.samuliweb.net
named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "samuliweb.net" {
type master;
file "/etc/bind/db.samuliweb.net";
allow-transfer { 192.168.0.5; };
};
zone "owncloud.samuliweb.net" {
type master;
file "/etc/bind/db.samuliweb.net";
allow-transfer { 192.168.0.5; };
};
zone "forum.samuliweb.net" {
type master;
file "/etc/bind/db.samuliweb.net";
allow-transfer { 192.168.0.5; };
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
allow-transfer { 8.8.8.8; };
};
/etc/bind/db.samuliweb.net
;
; BIND data file for samuliweb.net
;
$TTL 604800
@ IN SOA samuliweb.net. pi.samuliweb.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.samuliweb.net.
@ IN A 192.168.0.5
@ IN AAAA ::1
ns IN A 192.168.0.5
owncloud.samuliweb.net. IN NS ns.samuliweb.net.
forum.samuliweb.net. IN NS ns.samuliweb.net.