1. 在 named.conf.options 中加入全域設定
options {
forwarders {
8.8.8.8;
};
recursion no;
version "[SECURED]";
};
2. 在 named.conf.local 加入代管 Zone 名稱zone "sub.domain.net" in {
type master;
file "/etc/bind/db.sub.domain.net";
};
3. 新增 Zone 檔案 (即:db.sub.domain.net)
$TTL 604800
@ IN SOA dns.domain.net. root.localhost. (
2014030301 ; Serial
1200 ; Refresh
7200 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS dns.domain.net.
@ IN MX 10 mail
@ IN A [ IP of sub.domain.net ]
dns IN A [ IP of dns.domian.net ]
mail IN A [ IP of Mail Server ]
4. 重新載入 BIND 服務
沒有留言:
張貼留言