Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3387771
  • 博文数量: 631
  • 博客积分: 10716
  • 博客等级: 上将
  • 技术积分: 8397
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-01 22:35
文章分类

全部博文(631)

文章存档

2020年(2)

2019年(22)

2018年(4)

2017年(37)

2016年(22)

2015年(1)

2013年(12)

2012年(20)

2011年(19)

2010年(20)

2009年(282)

2008年(190)

分类: LINUX

2009-06-02 16:48:29

[root@dns named]# more /var/named/chroot/etc/named.conf 
// Default named.conf generated by install of bind-9.2.4-16.EL4
options {
        directory "/var/named/";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        //allow-query  {218.28.20.128/27; };
};
zone "." IN {
        type hint;
        file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
 

zone "0.0.127.in-addr.arpa" IN {
 

type master;
file "named.local";
allow-update { none; };
};
 
zone "zzvcom.com" IN {
        type master;
        file "zzvcom.com.zone";
        allow-update { none; };
};
zone "104.168.192.in-addr.arpa" IN {
        type master;
        file "104.168.192.in-addr.arpa.zone";
        allow-update { none; };
};
include "/etc/rndc.key";
 
[root@dns named]# more zzvcom.com.zone
$TTL    86400
@               IN SOA  dns.zzvcom.com.       root.zzvcom.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
@               IN NS           dns.zzvcom.com.
dns         IN A            218.28.20.152
mail            IN A            218.28.20.152
@               IN MX  5        dns.zzvcom.com.
www             IN A            218.28.20.152
vod             IN A            192.168.104.61
cds1            IN A            192.168.104.202
sar             IN A            192.168.104.19
[root@dns named]# more 104.168.192.in-addr.arpa.zone
$TTL    86400
@               IN SOA  dns.zzvcom.com.       root.zzvcom.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
@               IN NS           dns.zzvcom.com
mail            IN PTR          dns.zzvcom.com
@               IN MX  5        dns.zzvcom.com
www             IN PTR           dns.zzvcom.com
61              IN PTR           vod.zzvcom.com.
202             IN PTR           cds1.zzvcom.com.
19              IN PTR           sar.zzvcom.com.
 
 
[root@dns named]# more localhost.zone
$TTL    86400
@               IN SOA  @       root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           @
                IN A            127.0.0.1
                IN AAAA         ::
[root@dns named]# more named.local
$TTL    86400
@               IN SOA  localhost       root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
        IN      NS      localhost
 
 
阅读(1526) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~