;#(1)NS记录:区域名称 IN NS FQDN
IN NS example.com.
;#(2)A记录:FQDN IN A IP地址
IN AAAA ::1
IN A 210.*.241.115
www IN A 210.*.241.115
mail IN A 210.*.241.115
上面配置解析:
; 用作注释
@ 表示当前域
反向:241.*.210.local
[root@ named]# vi 241.*.210.local
$TTL 1D
@ IN SOA localhost. root.localhost. (
1997022700 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
;#(1)NS记录:区域名称 IN NS FQDN
IN NS localhost.
;#(2)PTR资源记录:IP地址 IN PTR FQDN
115 IN PTR
1 IN PTR mail.example.com.
五、启动服务
service named restart
六、测试:
[root@ email]# nslookup
> server 210.*.241.115
Default server: 210.*.241.115
Address: 210.*.241.115#53
>
Server: 210.*.241.115
Address: 210.*.241.115#53
Name:
Address: 210.*.241.115
> 210.*.241.115
Server: 210.*.241.115
Address: 210.*.241.115#53
115.241.*.210.in-addr.arpa name =
> 210.*.241.1
Server: 210.*.241.115
Address: 210.*.241.115#53
1.241.*.210.in-addr.arpa name = mail.example.com.
> mail.example.com
Server: 210.*.241.115
Address: 210.*.241.115#53
Name: mail.example.com
Address: 210.*.241.115
>
OK
如果上面过程有什么错误的,欢迎指正。