快速安装CentOS+Bind9.7.2(3)

$TTL    86400
@               IN SOA dns.linuxidc.com. root.linuxidc.com. (
                                        1997022700      ; serial (d. adams)
                                        28800           ; refresh
                                        14400           ; retry
                                        3600000         ; expiry
                                        86400)         ; minimum
                IN NS                   dns.linuxidc.com.
107             IN PTR                  dns.linuxidc.com.
107             IN PTR                 
6               IN PTR                  mail.linuxidc.com.

第三步 测试

启动bind

/usr/local/named/sbin/named -gc /usr/local/named/etc/named.conf &

nslookup方式测试
 
正向查询
#nslookup
>
Server:               192.168.1.107 
Address: 192.168.1.107#53    

Name:       
Address: 192.168.64.128 

反向查询
>192.168.1.107
Server:               192.168.1.107 
Address: 192.168.1.107#53    
107.1.168.192.in-addr.arpa name =   

别名查询
> set type=CNAME
>bbs.linuxidc.com
Server:               192.168.1.107 
Address: 192.168.1.107#53    
bbs.linuxidc.com      canonical name =   

查询SOA
>set type=SOA
>linuxidc.com
Server:               192.168.1.107 
Address: 192.168.1.107#53    
linuxidc.com          
    origin = dns.linuxidc.com          
    mail addr = root.linuxidc.com          
    serial = 420000          r
    efresh = 10800         
    retry = 900         
    expire = 604800         
    minimum = 86400 

查询NS
>set type=NS
>linuxidc.com
Server:               192.168.1.107 
Address: 192.168.1.107#53    
linuxidc.com     mail exchanger = 5 mail.linuxidc.com. 
> set type=NS    
> linuxidc.com  
Server:               192.168.1.107 
Address: 192.168.1.107#53    
linuxidc.com     nameserver = dns.linuxidc.com. 

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

转载注明出处:https://www.heiqu.com/wywffp.html