免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1278 | 回复: 1
打印 上一主题 下一主题

[DNS] DNS服务器问题(附日志) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-07 15:25 |只看该作者 |倒序浏览
本人是在局域网环境下做解析的,域名为www.IT.com  mail.IT.com  IP地址同为192.168.0.2,系统为Redhat AS 4.0
/etc/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 "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 "named.192.168.0.2";
        allow-update { none; };
};

zone "IT.com" IN {
        type master;
        file "/var/named/named.IT";
        allow-update { none; };
};
include "/etc/rndc.key";

/var/named/named.192.168.0.2(内容):

  $TTL 86400
  @ IN SOA     IT.com.        root.IT.com. (
                                       83              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
     IN    NS    www.IT.com
      IN    MX   10    mail.IT.com
 2 IN PTR www.IT.com
  2 IN PTR mail.IT.com

/var/named/named.IT(内容):

  $TTL 86400
  @ IN SOA     IT.com.           root.IT.com. (
                                       83              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN      NS   www.IT.com
                IN      MX   10  mail.IT.com
    www IN A 192.168.0.2
   mail IN A 192.168.0.2

tail -20 /var/log/messages:
Aug  7 15:01:59 IT named[3924]: no longer listening on 192.168.0.1#53
Aug  7 15:01:59 IT named[3924]: exiting
Aug  7 15:01:59 IT named:  succeeded
Aug  7 15:02:01 IT named[3953]: starting BIND 9.2.4 -u named -t /var/named/chroot
Aug  7 15:02:01 IT named[3953]: using 1 CPU
Aug  7 15:02:01 IT named: named 启动 succeeded
Aug  7 15:02:01 IT named[3953]: loading configuration from '/etc/named.conf'
Aug  7 15:02:01 IT named[3953]: listening on IPv4 interface lo, 127.0.0.1#53
Aug  7 15:02:01 IT named[3953]: listening on IPv4 interface eth0, 192.168.0.1#53
Aug  7 15:02:01 IT named[3953]: command channel listening on 127.0.0.1#953
Aug  7 15:02:01 IT named[3953]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug  7 15:02:01 IT named[3953]: dns_master_load: named.192.168.0.2:2: unexpected end of line
Aug  7 15:02:01 IT named[3953]: dns_master_load: named.192.168.0.2:1: unexpected end of input
Aug  7 15:02:01 IT named[3953]: zone 0.168.192.in-addr.arpa/IN: loading master file named.192.168.0.2: unexpected end of input
Aug  7 15:02:01 IT named[3953]: dns_master_load: /var/named/named.IT:2: unexpected end of line
Aug  7 15:02:01 IT named[3953]: dns_master_load: /var/named/named.IT:1: unexpected end of input
Aug  7 15:02:01 IT named[3953]: zone IT.com/IN: loading master file /var/named/named.IT: unexpected end of input
Aug  7 15:02:01 IT named[3953]: zone localdomain/IN: loaded serial 42
Aug  7 15:02:01 IT named[3953]: zone localhost/IN: loaded serial 42
Aug  7 15:02:01 IT named[3953]: running

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2005-08-08 00:19 |只看该作者

DNS服务器问题(附日志)

http://bbs.chinaunix.net/forum/viewtopic.php?t=352904&show_type=new
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP