zone "kaifa.com" { type master; file "kaifa.com.db"; }; //这是kaifa.com域解析数据文件
zone "253.198.10.in-addr.arpa" { type master; file "kaifa.com.rev"; }; //这是kaifa.com反向域解析数据文件
3、创建/etc/namedb/kaifa.com.db 文件,内容如下:
$TTL 3600
@ IN SOA dns.kaifa.com. root.dns.kaifa.com. ( 2003022102 ; Serial 28800 ; Refresh 7200 ; Retry 604800 ; Expire 86400 ; Minimum ) IN NS dns.kaifa.com. localhost IN A 127.0.0.1 dns IN A 10.198.253.239 www IN A 10.198.253.228 mail CNAME dns
4、创建/etc/namedb/kaifa.com.db 文件,内容如下:
$TTL 3600
@ IN SOA dns.kaifa.com. root.dns.kaifa.com. ( 2003022101 ; Serial 28800 ; Refresh 7200 ; Retry 604800 ; Expire 86400 ; Minimum ) IN NS dns.kaifa.com. 228 IN PTR www.kaifa.com. 239 IN PTR mail.kaif.com.