QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 857|回复: 3

小弟在配置dns的时候,修改了几个配置文件,请大家帮忙看看

[复制链接]
发表于 2006-6-13 16:21:06 | 显示全部楼层 |阅读模式
帮忙看看有没有问题,谢谢。
named.conf

// named.conf for Red Hat caching-nameserver
//

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
        type hint;
        file "named.ca";
};

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

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

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 "0.168.192.in-addr.arpa" IN {
        type master;
        file "0.168.192.zone";
        allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
        file "named.ip6.local";
        allow-update { none; };
};

zone "255.in-addr.arpa" IN {
        type master;
        file "named.broadcast";
        allow-update { none; };
};

zone "0.in-addr.arpa" IN {
        type master;
        file "named.zero";
        allow-update { none; };
};

include "/etc/rndc.key";
 楼主| 发表于 2006-6-13 16:21:37 | 显示全部楼层
qingqing.com.zone file

$TTL        86400
@                IN SOA        www.qingqing.com. root.www.qingqing.com.  (
                                        42                ; serial (d. adams)
                                        3H                ; refresh
                                        15M                ; retry
                                        1W                ; expiry
                                        1D )                ; minimum

                IN NS                www.qingqing.com
www             IN A                192.168.0.1
               

//0.168.192.zone file


$TTL        86400
@       IN      SOA    www.qingqing.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
       IN      NS      www.qingqing.com.

1       IN      PTR          www.qingqing.com.
回复

使用道具 举报

发表于 2006-6-13 16:45:58 | 显示全部楼层
$TTL 86400
@ IN SOA qingqing.com. root.qingqing.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS qingqing.com
www IN A 192.168.0.1

ps : 问一个很低级的问题。你的bind起来了没有?
你的resolv.conf 加入这个服务器没有?
貌似这个配置没有问题。
可以用bind的测试工具测试一下。

然后用 host www.qingqing.com 测试一下。
回复

使用道具 举报

 楼主| 发表于 2006-6-13 17:20:00 | 显示全部楼层
resolv.conf  这个文件中添加servername 192。168。0。1  是吗?这个我已经设置,还有其他设置吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-22 21:35 , Processed in 0.054955 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表