免费注册 查看新帖 |

Chinaunix

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

问题又来了——[关于bind9] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-24 14:14 |只看该作者 |倒序浏览
问题一:
诸位,这两天在研究bind9以前从没做过dns,我的版本是9.2.3。下载源程序,并且编译到自定义位置。发现named.conf等文件都没有。
于是手动创建。启动的时候遇到以下错误,请问缺少的文件如何生成?named.pid和rndc.key
Mar 24 13:50:05.288 starting BIND 9.2.3 -g
Mar 24 13:50:05.289 using 2 CPUs
Mar 24 13:50:05.295 loading configuration from '/u03/bind/conf/named.conf'
Mar 24 13:50:05.314 no IPv6 interfaces found
Mar 24 13:50:05.315 listening on IPv4 interface lo, 127.0.0.1#53
Mar 24 13:50:05.316 listening on IPv4 interface eth0, 192.168.1.122#53
Mar 24 13:50:05.316 listening on IPv4 interface eth1, 192.168.1.14#53
Mar 24 13:50:05.337 none:0: open: /u03/bind/conf/rndc.key: file not found
Mar 24 13:50:05.337 couldn't add command channel 127.0.0.1#953: file not found
Mar 24 13:50:05.337 ignoring config file logging statement due to -g option
Mar 24 13:50:05.337 couldn't open pid file '/u03/bind/local/run/named.pid': No such file or directory
Mar 24 13:50:05.337 exiting (due to early fatal error)


问题二:
下面还有问题就是用named-checkzone命令检查zone配置文件的时候,出现错误:
[root@db02 local]# named-checkzone mydomain.com named.mydomain
dns_master_load: named.mydomain:19: ignoring out-of-zone data (www.yourdomaon.com)
dns_master_load: named.mydomain:22: ignoring out-of-zone data (ns.yourdomaon.com)
dns_master_load: named.mydomain:25: ignoring out-of-zone data (mail.yourdomaon.com)
dns_master_load: named.mydomain:32: db02.mydomain.com.mydomain.com: multiple RRs of singleton type
zone mydomain.com/IN: loading master file named.mydomain: multiple RRs of singleton type


文件mydomain.com 内容如下:
$ORIGIN mydomain.com.   
$TTL    144000

@       IN      SOA     mydomain.com.   hostmaster.mydomain.com. (
        2002010828 ; Serial
        3H      ; Refresh
        2H      ; Retry
        4W      ; Expire
        3D )    ; Minimum

        IN      NS      ns.mydomain.com.

        IN      MX      10      mail.mydomain.com.
        TXT   "Your Corporation"

mydomain.com.   IN      A       192.168.1.14
        IN      MX      10      mail.yourdomaon.com.

www.yourdomaon.com.     IN      A       192.168.1.100
        IN      MX      10      mail.yourdomaon.com.

ns.yourdomaon.com.      IN      A       192.168.1.14
        IN      MX      10      mail.yourdomain.com.

mail.yourdomaon.com.    IN      A       192.168.1.14
        IN      MX      10      mail.yourdomaon.com.

;
;
db01.mydomain.com       IN      CNAME   www.yourdomaon.com.
db02.mydomain.com       IN      CNAME   mail.yourdomaon.com.
db02.mydomain.com       IN      CNAME   ns.yourdomaon.com.
;
; ================ END ================


先谢谢大家的帮忙了

论坛徽章:
0
2 [报告]
发表于 2004-03-25 10:47 |只看该作者

问题又来了——[关于bind9]

顶上去再说
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP