zone "zone1.com" IN {
type master;
file "/var/named/data/zone1.com";
};

zone "zone2.com" IN {
type master;
file "/var/named/data/zone2.com";
};

Example zone1.com zone file:

$TTL 604800
@ IN SOA ns1.zone1.com. dns.zone1.com. (
2013021801 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
NS ns1

ns1 IN A 192.168.122.65
test IN A 127.0.0.1

Example zone2.com zone file:

@ IN SOA ns1.zone2.com. dns.zone2.com. (
2012060601 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
NS ns1.zone1.com.

@ IN DNAME zone1.com.
Advertisements