[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]#
如何解决 呢?谢谢!
[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.
[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]明明是已经有一个进程了。