Linux下源码搭建Bind服务器(2)


//建立named.local文件
[root@ named]# vi named.local
$TTL    86400
@       IN      SOA     localhost. root.localhost.  (                                       1997022700 ; Serial                                       28800      ; Refresh                                       14400      ; Retry                                       3600000    ; Expire                                       86400 )    ; Minimum               IN      NS      localhost.
1       IN      PTR     localhost.
//dig命令直接生成named.root文件
[root@ named]# dig > named.root


//建立linuxidc.com域名正向解析文件
[root@ named]# vi linuxidc.zone
$ttl    1D
@               IN SOA  linuxidc.com.  root.linuxidc.com. (                                        1053891162                                    
                                       3H                                       
                                       15M                                     
                                       1W                                    
                                       1D )                   
                IN NS          linuxidc.com.                       
                IN MX    5     linuxidc.com.
www             IN A           192.168.1.107

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/bb6948e3f0dac24b335eb02ccfa3278a.html