免费注册 查看新帖 |

Chinaunix

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

[DNS] 配置 dns服务器 碰到的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-03 13:49 |只看该作者 |倒序浏览
请大家看看我的配置,然后帮忙提提意见:
我的域名服务器的反向解析文件内容:
TTL
  @ IN SOA ns.pldsec.com. root.pldsec.com.(
    19997022700;serial
    28800; refresh
    14400; retry
    3600000; expire
  @ IN NS ns.pldsec.com.
  99 IN PRT mail.pldsec.com.
  99 IN PRT www.pldsec.com.
域名服务器的正向解析文件内容:
#文件 pldsec.com.hosts
$ TTL 86400
  
  @ IN SOA ns.pldsec.com. root.pldsec.com.
   (42; serial (d.adams)
   3H; refresh
   15M; retry
   1w; expiry
1D;minimum
  @ IN NS ns.pldsec.com.
  
@ IN A 192.168.1.99
  
  www IN A 192.168.1.99
mail IN A 192.168.1.99
  
@ IN MX 10 mail.pldsec.com.
www CNAME ns



#/etc/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 "pldsec.com" {
type master;

file "pldsec.com.hosts";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.rev";

};

include "/etc/rndc.key";
运行命令 nslookup 出现的错误提示为:
[root@server etc]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> www.pldsec.com
Server: 192.168.1.99
Address: 192.168.1.99#53

** server can't find www.pldsec.com: SERVFAIL
> 192.168.1.99
Server: 192.168.1.99
Address: 192.168.1.99#53

** server can't find 99.1.168.192.in-addr.arpa: SERVFAIL
> locl^Ha^H^H^H^H
Server: 192.168.1.99
Address: 192.168.1.99#53

** server can't find locl\008a\008\008\008\008: NXDOMAIN
> localhost
Server: 192.168.1.99
Address: 192.168.1.99#53

Name: localhost
Address: 127.0.0.1
> 127.0.0.1
Server: 192.168.1.99
Address: 192.168.1.99#53

1.0.0.127.in-addr.arpa name = localhost.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP