Linux(CentOS 5.4)中Bind服务的安装与配置全过程(2)

zone "linuxidc.com" IN {
        type master;
        file "linuxidc.com.zone";
        allow-update { none; };
};

zone "61.25.10.in-addr.arpa" IN {
        type master;
        file "10.25.61.zone";
        allow-update { none; };
};
---------------------------------------------------------------------------

# 配置正反向解析文件
---------------------------------------------------------------------------
#cp -p localdomain.zone linuxidc.com.zone
#vim linuxidc.com.zone
$TTL    86400
@               IN SOA    root.linuxidc.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

IN NS          
www             IN A            10.25.61.32
                IN AAAA         ::1
---------------------------------------------------------------------------
#cp -p named.local 10.25.61.zone
#vim 10.25.61.zone
$TTL    86400
@       IN      SOA     root.linuxidc.com. (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
        IN      NS     
32       IN      PTR    
---------------------------------------------------------------------------
32是指的是IP:10.25.61.32的最后一个数。

添加自己的机器进行域名解析
# vi /etc/hosts
127.0.0.1               localhost.localdomain localhost
#::1            localhost6.localdomain6 localhost6
10.25.61.32         www

# vi /etc/resolv.conf

nameserver 10.25.61.32
search linuxidc.com

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

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