首页 > √linux > linux配置dns几个问题的解决方法

linux配置dns几个问题的解决方法

2009年7月17日 vi 发表评论 阅读评论

linux下搭服务,真是头痛。拖了挺久。今天在高人的帮助下解决了。哈哈哈。

安装就不用说了。

1.服务启动失败。

[root@vi ]# service restart
Stopping : [  OK  ]
Starting : [  FAILED  ]

查看日志 /var/log/messages 如下

Jul 17 00:29:07 vi [8287]: none:0: open: /etc/.conf: permission denied

查看.conf权限

[root@vi ]# ls -l  /etc/.conf  
-rw-r–r– 1 root root 1264 Jul 17 13:36 /etc/.conf

[root@vi ]# chmod 755 /etc/.conf
[root@vi ]# ls -l /etc/.conf
-rwxr-xr-x 1 root root 1368 Jul 17 14:04 /etc/.conf

问题解决。

2. 本机能解析,但客户机不能解析.

把默认的.conf文件中 以下部份注释掉

//view localhost_resolver {
//      match-clients      { localhost; };
//      match-destinations { localhost; };
//      recursion yes;
//      include “/etc/.rfc1912.zones”;
//};

3. 有用的命令 -g

[root@vi ]# -g
17-Jul-2009 14:09:10.579 starting 9.3.4-P1 -g
17-Jul-2009 14:09:10.579 found 1 CPU, using 1 worker thread
17-Jul-2009 14:09:10.581 loading configuration from ‘/etc/.conf’
17-Jul-2009 14:09:10.582 listening on IPv6 interface lo, ::1#53
17-Jul-2009 14:09:10.582 binding TCP socket: address in use
17-Jul-2009 14:09:10.582 listening on IPv4 interface lo, 127.0.0.1#53
17-Jul-2009 14:09:10.583 binding TCP socket: address in use
17-Jul-2009 14:09:10.583 listening on IPv4 interface eth0, 210.34.1.1#53
17-Jul-2009 14:09:10.583 binding TCP socket: address in use
17-Jul-2009 14:09:10.584 couldn’t add command channel 127.0.0.1#953: address in use
17-Jul-2009 14:09:10.585 couldn’t add command channel ::1#953: address in use
17-Jul-2009 14:09:10.585 ignoring config file logging statement due to -g option
17-Jul-2009 14:09:10.585 couldn’t open pid file ‘/var/run//.pid’: Permission denied
17-Jul-2009 14:09:10.585 exiting (due to early fatal error)

分类: √linux 标签: , , ,
  1. 小杰
    2009年7月19日20:27 | #1

    哇卡!一进来看见这个 不错不错!!

  2. 2009年7月20日11:59 | #2

    哈哈哈。@小杰

  1. 本文目前尚无任何 trackbacks 和 pingbacks.