免费注册 查看新帖 |

Chinaunix

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

我的DNS服务器 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-29 11:24 |只看该作者 |倒序浏览
在我的机器上配置DNS服务器不能成功(用host测试都不行),真是气死我也。我机器的IP为10.10.10.100,请各位大虾帮忙看看
其他需要解析的IP为
zwqk.nmzl.com 172.16.1.208
tech.nmzl.com 172.16.1.207
gov.nmzl.com 172.16.1.210
xxswj.nmzl.com 172.16.1.207
www.nmzl.com 172.16.1.206
wanfangdata.nmzl.com 172.16.1.208
pop3.nmzl.com 172.16.1.210
smtp.nmzl.com 172.16.1.210
mail.nmzl.com 172.16.1.210
movie.nmzl.com I172.16.1.207
music.nmzl.com 172.16.1.207
flash.nmzl.com 172.16.1.207
meeting.nmzl.com 172.16.1.207
data.nmzl.com 172.16.1.207
center.nmzl.com 172.16.1.207

named.conf文件的配置

options {
        directory "/var/named";
        /*
         * 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 "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 "nmzl.com" IN {
      type master;
      file "nmzl.com.hosts";
};
zone "1.16.172.in-addr.arpa" IN {
      type master;
      file "172.16.1.rev";
};
include "/etc/rndc.key";


172.16.1.rev

$TTL 86400
@ IN SOA liubo.nmzl.com. root.localhost(
                                      1997022700 ; Serial
                                      28800 ; Refresh
                                      14400 ; Retry
                                      3600000 ; Expire
                                      86400 ) ; Minimum
              IN NS liubo.nmzl.com.
206 IN PTR www.nmzl.com.
208 IN PTR zwqk.nmzl.com.
207 IN PTR tech.nmzl.com.
210 IN PTR gov.nmzl.com.
207 IN PTR xxswj.nmzl.com.

nmzl.com.hosts文件的配置

$TTL 86400
@ 1D IN SOA liubo.nmzl.com. root.localhost.
(
                                        42 ; serial (d. adams)
                                        3H ; refresh
                                        15M ; retry
                                        1W ; expiry
                                        1D ) ; minimum
                        IN NS liubo.nmzl.com.
                        IN MX 10 mail.nmzl.com.
liubo IN A 10.10.10.100
zwqk IN A 172.16.1.208
tech IN A 172.16.1.207
gov IN A 172.16.1.210
xxswj IN A 172.16.1.207
www IN A 172.16.1.206
wanfangdata IN CNAME zwqk.nmzl.com.
pop3 IN CNAME gov.nmzl.com.
smtp IN CNAME gov.nmzl.com.
mail IN CNAME gov.nmzl.com.
movie IN CNAME tech.nmzl.com.
music IN CNAME tech.nmzl.com.
flash IN CNAME tech.nmzl.com.
meeting IN CNAME gov.nmzl.com.
data IN CNAME gov.nmzl.com.
center IN CNAME gov.nmzl.com.

hosts文件的配置
127.0.0.1 localhost localhost.localdomain
10.10.10.100 liubo

resolv.conf文件的配置

nameserver 10.10.10.100

论坛徽章:
0
2 [报告]
发表于 2004-03-29 12:54 |只看该作者

我的DNS服务器

为什么没有为10.10.10.100添加解析块??
你社定的nameserver 为10.10.10.100你不解析他怎么能行?

论坛徽章:
0
3 [报告]
发表于 2004-03-29 17:58 |只看该作者

我的DNS服务器

原帖由 "wangfeixue" 发表:
为什么没有为10.10.10.100添加解析块??
你社定的nameserver 为10.10.10.100你不解析他怎么能行?

我加了还是不行能说的详细点吗?谢谢

论坛徽章:
0
4 [报告]
发表于 2004-03-29 19:59 |只看该作者

我的DNS服务器

能说说报什么错误吗?

论坛徽章:
0
5 [报告]
发表于 2004-03-30 17:15 |只看该作者

我的DNS服务器

没有朋友知道是怎么回事吗?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
6 [报告]
发表于 2004-03-30 17:23 |只看该作者

我的DNS服务器

[quote]原帖由 "studymonkey"]能说说报什么错误吗?[/quote 发表:

对啊,你的错误提示呢?把tail -f /var/log/messages的结果贴出来。

论坛徽章:
0
7 [报告]
发表于 2004-03-30 20:08 |只看该作者

我的DNS服务器

原帖由 "好好先生" 发表:

对啊,你的错误提示呢?把tail -f /var/log/messages的结果贴出来。

Mar 30 19:57:10 liubo  3月 30 19:57:10 gconfd (root-4233): 正在启动(版本 2.2.0
),pid 4233 用户“root”
Mar 30 19:57:11 liubo  3月 30 19:57:11 gconfd (root-4233): 解析的地址“xml:readonly:/etc/gconf/gconf.xml.mandatory”指向位于 0 的只读配置源
Mar 30 19:57:11 liubo  3月 30 19:57:11 gconfd (root-4233): 解析的地址“xml:readwrite:/root/.gconf”指向位于 1 的可写入配置源
Mar 30 19:57:11 liubo  3月 30 19:57:11 gconfd (root-4233): 解析的地址“xml:readonly:/etc/gconf/gconf.xml.defaults”指向位于 2 的只读配置源
Mar 30 19:57:20 liubo kernel: ide-floppy driver 0.99.newide
Mar 30 19:57:20 liubo kernel: hdd: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
Mar 30 19:57:20 liubo kernel: Uniform CD-ROM driver Revision: 3.12
Mar 30 19:57:22 liubo kernel: cdrom: This disc doesn't have any tracks I recognize!
Mar 30 19:57:27 liubo kernel: SubID=0x0000100a.
Mar 30 19:57:27 liubo kernel: intel8x0: clocking to 48000
这有什么用吗?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
8 [报告]
发表于 2004-03-31 07:58 |只看该作者

我的DNS服务器

先service named resart;然后tail -f /var/log/messages。然后把结果贴上来。

论坛徽章:
0
9 [报告]
发表于 2004-03-31 09:02 |只看该作者

我的DNS服务器


Mar 31 08:53:10 liubo kernel: ide-floppy driver 0.99.newide
Mar 31 08:53:10 liubo kernel: hdd: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
Mar 31 08:53:10 liubo kernel: Uniform CD-ROM driver Revision: 3.12
Mar 31 08:53:11 liubo kernel: cdrom: This disc doesn't have any tracks I recognize!
Mar 31 08:53:16 liubo kernel: SubID=0x0000100a.
Mar 31 08:53:16 liubo kernel: intel8x0: clocking to 48000
Mar 31 08:55:51 liubo named[3776]: shutting down: flushing changes
Mar 31 08:55:51 liubo named[3776]: stopping command channel on 127.0.0.1#953
Mar 31 08:55:51 liubo named[3776]: no longer listening on 127.0.0.1#53
Mar 31 08:55:51 liubo named[3776]: no longer listening on 10.10.10.100#53

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2004-03-31 09:19 |只看该作者

我的DNS服务器

那个发行版?没有太大错误啊?把/etc/hosts中下面的那一行还删除吧,没有多少用。如果是rh9,修改配置文件后要killall -9 named;service named start.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP