zone "kaiiiz.nctucs.net" IN {
type master;
file "zone/db.kaiiiz.nctucs.net";
};
zone "184.229.35.in-addr.arpa" {
type master;
file "zone/db.35.229.184";
};
我們在 named.conf.local 裡 kaiiiz.nctucs.net 這個 zone 設定了讀取檔案的位址,也就是:
/var/cache/bind/zone/db.kaiiiz.nctucs.net 這個正解檔
/var/cache/bind/zone/db.35.229.184 這個反解檔
Master zone file
正解檔:
/var/cache/bind/zone/db.kaiiiz.nctucs.net
$TTL 600
@ IN SOA dns.kaiiiz.nctucs.net. admin.kaiiiz.nctucs.net. (
2018042409
1800
900
1W
1D )
; main dns
@ IN NS dns.kaiiiz.nctucs.net.
dns.kaiiiz.nctucs.net. IN A 35.229.184.206
反解檔:
/var/cache/bind/zone/db.35.229.184
$TTL 600
@ IN SOA dns.kaiiiz.nctucs.net. admin.nctucs.net. (
2018042409
1800
900
1W
1D )
; name server
@ IN NS dns.kaiiiz.nctucs.net.
206 IN PTR dns.kaiiiz.nctucs.net.