LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: txkss

DNS又启不来了

[复制链接]
发表于 2004-8-9 17:09:08 | 显示全部楼层
这样:你将你现在的配置文件备份

然后拿你之前配置好的配置文件mv过去,然后修改成你的域名

然后比较一下,哪里问题
发表于 2004-8-9 18:44:16 | 显示全部楼层
in.named -f -d9
 楼主| 发表于 2004-8-9 20:53:51 | 显示全部楼层
in.named -f -d9

楼上的这是什么意思啊
解释一下啊详细点哦
谢谢谢谢谢你了
发表于 2004-8-9 23:38:40 | 显示全部楼层
你可以使用named-checkconf先测试看看,或用named -g
另外的话,如果是主dns的话,先不要设置/etc/resolve.conf里面的nameserver,将它先注释掉。再试试看,你用ps -ef |grep named,如果没有看到有named -u named这样子的进程的话,那就根本没启动。。。
发表于 2004-8-10 00:13:57 | 显示全部楼层
按你所说的用ps查不到named的进程,那是它就根本就没有启动过.多数可能是named.conf这个文件错误.
但是你的dns数据库文件格式也好像有点问题呀!
 楼主| 发表于 2004-8-10 20:32:27 | 显示全部楼层
[root@linux1 root]# named-checkconf
[root@linux1 root]# named -g
Aug 08 10:39:37.438 starting BIND 9.2.2 -g
Aug 08 10:39:37.442 using 1 CPU
Aug 08 10:39:37.464 loading configuration from '/etc/named.conf'
Aug 08 10:39:37.500 no IPv6 interfaces found
Aug 08 10:39:37.502 listening on IPv4 interface lo, 127.0.0.1#53
Aug 08 10:39:37.506 listening on IPv4 interface eth0, 192.168.111.1#53
Aug 08 10:39:37.507 listening on IPv4 interface eth1, 192.168.0.2#53
Aug 08 10:39:37.509 listening on IPv4 interface eth2, 192.168.11.1#53
Aug 08 10:39:37.525 command channel listening on 127.0.0.1#953
Aug 08 10:39:37.526 ignoring config file logging statement due to -g option
Aug 08 10:39:37.527 couldn't open pid file '/var/run/named/named.pid': Permission denied
Aug 08 10:39:37.528 exiting (due to early fatal error)
[root@linux1 root]# ps -ef|grep named
root      2465  2408  0 10:41 pts/1    00:00:00 grep named
[root@linux1 root]#
全部内容如上
 楼主| 发表于 2004-8-10 20:33:54 | 显示全部楼层
named-checkconf   //这个动作是什么意思啊
named -g          //这个动作是什么意思啊?
请给我讲一讲啊
发表于 2004-8-10 23:00:57 | 显示全部楼层
这问题置顶几天吧,,,,希望兄弟问题能尽快解决 !

这个地址的内容发了几次给你,你了解了吗,,,详细多看几次对你学dns很有帮助

http://www.study-area.org/linux/servers/linux_dns.htm
发表于 2004-8-11 00:29:27 | 显示全部楼层
couldn't open pid file '/var/run/named/named.pid': Permission denied
这就是错误所在!
#chmode 777 -R /var/run/named/*
#service named restart 可能出错
#service named restart 也可能出错
#service named restart  一般正确了
#named -g  //检查错误信息,每错误了运行下步
#named

看看另一贴,或许有点帮助。
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=129458
 楼主| 发表于 2004-8-12 21:35:27 | 显示全部楼层
[root@linux2 root]# named -g
Aug 09 12:14:31.273 starting BIND 9.2.2 -g
Aug 09 12:14:31.278 using 1 CPU
Aug 09 12:14:31.295 loading configuration from '/etc/named.conf'
Aug 09 12:14:31.327 no IPv6 interfaces found
Aug 09 12:14:31.329 listening on IPv4 interface lo, 127.0.0.1#53
Aug 09 12:14:31.332 binding TCP socket: address in use
Aug 09 12:14:31.333 listening on IPv4 interface eth0, 192.168.111.2#53
Aug 09 12:14:31.334 binding TCP socket: address in use
Aug 09 12:14:31.347 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use
Aug 09 12:14:31.347 ignoring config file logging statement due to -g option
Aug 09 12:14:31.348 couldn't open pid file '/var/run/named/named.pid': Permission denied
Aug 09 12:14:31.349 exiting (due to early fatal error)
怎么办啊   ^_^
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表