named-checkconf #檢查 named 設定錯誤指令
舉例: helo.com.tw
vi /etc/bind/named.conf.options
加入
allow-query { any; };
listen-on {
10.0.0.0/24;
};
vi named.conf.local
zone "helo.com.tw" {
type master;
file "/etc/bind/db.helo.com.tw";
allow-transfer { ip-adress; };
also-notify { ip-address; };
};
cp /etc/named/db.loal /etc/named/db.hello.com.tw
去裡面修改
@ IN MX hello.com.tw
@ IN TXT "spf"
spf 產生器 : https://dmarcly.com/tools/spf-record-generator
PS : IPV4 修改 vi /etc/default/named 原設定多加 -4 options="-4 -u bind"
DKIM 產生器 : https://dmarcly.com/tools/dkim-record-generator