免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: okliubo
打印 上一主题 下一主题

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

论坛徽章:
0
11 [报告]
发表于 2004-03-31 10:07 |只看该作者

我的DNS服务器

重新试了一下是
Mar 31 09:22:57 liubo named[5614]: command channel listening on 127.0.0.1#953Mar 31 09:22:57 liubo named[5614]: dns_rdata_fromtext: 10.10.10.rev:2: near eol:
unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone 10.10.10.in-addr.arpa/IN: loading master file 10.10.10.rev: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Mar 31 09:22:57 liubo named[5614]: dns_rdata_fromtext: 172.16.1.rev:2: near eol:
unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone 1.16.172.in-addr.arpa/IN: loading master file 172.16.1.rev: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: dns_rdata_fromtext: nmsti.com.hosts:2: near eol: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone nmsti.com/IN: loading master file nmsti.com.hosts: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone localhost/IN: loaded serial 42
Mar 31 09:22:57 liubo named[5614]: running

论坛徽章:
0
12 [报告]
发表于 2004-03-31 17:33 |只看该作者

我的DNS服务器

我的配置改成了如下的样子,还是不行
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 "10.10.10.in-addr.arpa" IN {
type master;
file "10.10.10.rev";
};
zone "1.16.172.in-addr.arpa" IN {
type master;
file "172.16.1.rev";
};
include "/etc/rndc.key";
10.10.10.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.
100 IN PTR liubo.nmzl.com.

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


tail -f /var/log/messages的结果为:
Mar 31 09:22:57 liubo named[5614]: command channel listening on 127.0.0.1#953Mar 31 09:22:57 liubo named[5614]: dns_rdata_fromtext: 10.10.10.rev:2: near eol:
unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone 10.10.10.in-addr.arpa/IN: loading master file 10.10.10.rev: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Mar 31 09:22:57 liubo named[5614]: dns_rdata_fromtext: 172.16.1.rev:2: near eol:
unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone 1.16.172.in-addr.arpa/IN: loading master file 172.16.1.rev: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: dns_rdata_fromtext: nmsti.com.hosts:2: near eol: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone nmsti.com/IN: loading master file nmsti.com.hosts: unexpected end of input
Mar 31 09:22:57 liubo named[5614]: zone localhost/IN: loaded serial 42
Mar 31 09:22:57 liubo named[5614]: running

论坛徽章:
0
13 [报告]
发表于 2004-04-01 15:33 |只看该作者

我的DNS服务器

自己顶一下吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP