QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1431|回复: 4

named -g提示的错误?

[复制链接]
发表于 2005-6-13 11:26:00 | 显示全部楼层 |阅读模式
[root@localhost etc]# named -g
Jun 13 11:18:01.227 starting BIND 9.2.4rc6 -g
Jun 13 11:18:01.227 using 1 CPU
Jun 13 11:18:01.233 loading configuration from '/etc/named.conf'
Jun 13 11:18:01.241 no IPv6 interfaces found
Jun 13 11:18:01.242 listening on IPv4 interface lo, 127.0.0.1#53
Jun 13 11:18:01.243 binding TCP socket: address in use
Jun 13 11:18:01.243 listening on IPv4 interface eth0, 150.31.3.251#53
Jun 13 11:18:01.244 binding TCP socket: address in use
Jun 13 11:18:01.249 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use
Jun 13 11:18:01.250 ignoring config file logging statement due to -g option
Jun 13 11:18:01.250 couldn't open pid file '/var/run/named/named.pid': Permission denied
Jun 13 11:18:01.250 exiting (due to early fatal error)
[root@localhost etc]#
如何解决 呢?谢谢!
发表于 2005-6-13 13:43:47 | 显示全部楼层
[code:1]Permission denied[/code:1]
权限问题。
回复

使用道具 举报

 楼主| 发表于 2005-6-13 16:06:54 | 显示全部楼层
那里的权限?如何改呢?name服务器的IP为150.31.3.251.我在两台AS3上同样的配置(只有域名不一样)另一台可以,而这台却不行。以下是named.con  sxk.com.zone  sxk.com.arpa三个文件的内容,望各位指教!


[root@localhost etc]#  vi named.conf
        /*
         * 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 "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

zone "sxk.com" IN {
    type master;
    file "sxk.com.zone";
};

zone "3.31.150.in-addr.arpa" IN {
    type master;
    file "sxk.com.arpa";
};

include "/etc/rndc.key";








[root@localhost named]# vi sxk.com.zone
$TTL    2h
sxk.com. IN SOA    www.sxk.com. master.sxk.com. (
      20040730    ;serial number
      2h        ;refresh timeout
      40m        ;retry  refresh timeout
      1w        ;expire timeout
      2h        ;TTL time
    )

sxk.com.    IN    NS    www.sxk.com.

www        IN    A    150.31.3.9
ftp        IN    A    150.31.3.251








[root@localhost named]# vi sxk.com.arpa
  $TTL    2h
@    IN    SOA    www.sxk.com.    master.sxk.com. (
                  20040730    ;serial number
                  2h        ;refresh timeout
                  40m        ;retry  refresh timeout
                  1w        ;expire timeout
                  2h        ;TTL time
                )
3.31.150.in-addr.arpa  IN    NS    www.sxk.com.

9    IN    PTR    www.sxk.com.
251    IN    PTR    ftp.sxk.com.
回复

使用道具 举报

 楼主| 发表于 2005-6-16 22:28:03 | 显示全部楼层
问题解决了。我把/etc/inittab中的5改成3即改成文本方式启动就可以了。为什么会是这样呢?怎样才能让它在5时也能正常动作呢?谢谢!
回复

使用道具 举报

发表于 2005-6-17 13:58:29 | 显示全部楼层

Re: named -g提示的错误?

[quote:561ead9ecb="小菜刀"][root@localhost etc]# named -g
Jun 13 11:18:01.227 starting BIND 9.2.4rc6 -g
Jun 13 11:18:01.227 using 1 CPU
Jun 13 11:18:01.233 loading configuration from '/etc/named.conf'
Jun 13 11:18:01.241 no IPv6 interfaces found
Jun 13 11:18:01.242 listening on IPv4 interface lo, 127.0.0.1#53
Jun 13 11:18:01.243 binding TCP socket: address in use
Jun 13 11:18:01.243 listening on IPv4 interface eth0, 150.31.3.251#53
Jun 13 11:18:01.244 binding TCP socket: address in use
Jun 13 11:18:01.249 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use
Jun 13 11:18:01.250 ignoring config file logging statement due to -g option
Jun 13 11:18:01.250 couldn't open pid file '/var/run/named/named.pid': Permission denied
Jun 13 11:18:01.250 exiting (due to early fatal error)
[root@localhost etc]#
如何解决 呢?谢谢![/quote]明明是已经有一个进程了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 18:36 , Processed in 0.070905 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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