免费注册 查看新帖 |

Chinaunix

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

[DNS] 架设dns全攻略 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2003-09-16 10:23 |只看该作者

架设dns全攻略

你是怎么起动的,怎么生成啊

我用上面说的方法起动,显示说没那个文件,然后起动就结束了

能不能详细的讲一下

论坛徽章:
0
22 [报告]
发表于 2003-09-16 10:29 |只看该作者

架设dns全攻略

你是怎么起动的

我没那个文件就起动不了

能不能详细讲一下啊

论坛徽章:
0
23 [报告]
发表于 2004-03-22 18:19 |只看该作者

架设dns全攻略

现在我们可以去设置dns服务器启动时自动运行,不需要我们开一个窗口去运行它。我们可以在“/etc/rc2.d”目录下做一个启动文件,这样每次服务器启动时bind都会自动启动起来。
如何做啊?偶不知道

论坛徽章:
0
24 [报告]
发表于 2004-08-13 15:36 |只看该作者

架设dns全攻略

#
# Aug 13 15:35:02.845 starting BIND 9.2.3rc1 -gc /usr/local/etc/named.conf
Aug 13 15:35:02.846 using 1 CPU
Aug 13 15:35:02.848 loading configuration from '/usr/local/etc/named.conf'
Aug 13 15:35:02.849 listening on IPv4 interface rl0, 192.168.0.11#53
Aug 13 15:35:02.850 listening on IPv4 interface lo0, 127.0.0.1#53
Aug 13 15:35:02.853 command channel listening on 127.0.0.1#953
Aug 13 15:35:02.853 /usr/local/etc/named.conf:39: couldn't add command channel 127.0.0.1#953: address in use
Aug 13 15:35:02.853 ignoring config file logging statement due to -g option
Aug 13 15:35:02.857 dns_rdata_fromtext: localhost.rev:10: near '@date@': not a valid number
Aug 13 15:35:02.858 zone 0.0.127.IN-ADDR.ARPA/IN: loading master file localhost.rev: not a valid number
Aug 13 15:35:02.858 zone 0.168.192.in-addr.arpa/IN: loading master file db.192.168.0: file not found
Aug 13 15:35:02.858 zone md.com/IN: loading master file md.com.zone: file not found
Aug 13 15:35:02.858 running

论坛徽章:
0
25 [报告]
发表于 2004-08-13 15:38 |只看该作者

架设dns全攻略

#
# Aug 13 15:35:02.845 starting BIND 9.2.3rc1 -gc /usr/local/etc/named.conf
Aug 13 15:35:02.846 using 1 CPU
Aug 13 15:35:02.848 loading configuration from '/usr/local/etc/named.conf'
Aug 13 15:35:02.849 listening on IPv4 interface rl0, 192.168.0.11#53
Aug 13 15:35:02.850 listening on IPv4 interface lo0, 127.0.0.1#53
Aug 13 15:35:02.853 command channel listening on 127.0.0.1#953
Aug 13 15:35:02.853 /usr/local/etc/named.conf:39: couldn't add command channel 127.0.0.1#953: address in use
Aug 13 15:35:02.853 ignoring config file logging statement due to -g option
Aug 13 15:35:02.857 dns_rdata_fromtext: localhost.rev:10: near '@date@': not a valid number
Aug 13 15:35:02.858 zone 0.0.127.IN-ADDR.ARPA/IN: loading master file localhost.rev: not a valid number
Aug 13 15:35:02.858 zone 0.168.192.in-addr.arpa/IN: loading master file db.192.168.0: file not found
Aug 13 15:35:02.858 zone md.com/IN: loading master file md.com.zone: file not found
Aug 13 15:35:02.858 running

论坛徽章:
0
26 [报告]
发表于 2005-10-25 07:06 |只看该作者

架设dns全攻略

安装完BIND不就有了吗?
/var/named里面有name.root(可以自己更名的)

论坛徽章:
0
27 [报告]
发表于 2005-10-26 10:41 |只看该作者

架设dns全攻略

不过本人照做发现好像cpss兄的配置文件中有错误的地方,而且文章里有些说明的不清楚,比如named.root和localhost.rev应该在/var/namedb文件夹内,那两个conf则应该在/usr/local/etc文件夹内吧?

论坛徽章:
0
28 [报告]
发表于 2006-12-05 11:43 |只看该作者

求救呀

configure: error:
ar program not found.  Please fix your PATH to include the directory in
which ar resides, or set AR in the environment with the full path to ar.

论坛徽章:
0
29 [报告]
发表于 2007-03-23 16:32 |只看该作者
配置文件都是相对这个路径的,
  1.     directory "/var/namedb";    // 工作目录
复制代码

也就是说,named.root,localhost.rev,bind.com.zone这三个文件都在
/var/namedb文件夹下面。

运行/usr/local/sbin/named的时候,系统默认到/etc/下面去找named.conf
文件,如果你的named.conf 文件不在/etc/下面,运行的时候就要用-c 来指定
文件地址。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP