- 论坛徽章:
- 0
|
1>;/etc/hosts内容:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.14.70.89 www.linuxcn.com
2>;/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=linuxcn
3>;/etc/resolv.conf:
search linuxcn.com
nameserver 10.14.70.89
4>;/etc/named.conf:
options {
directory "/var/named";
/*
* 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 "linuxcn.com" IN {
type master;
file "named.hosts";
};
zone "70.14.10.in-addr.arpa" IN {
type master;
file "named.rev";
};
include "/etc/rndc.key";
5>;/var/named/named.hosts:
$TTL 86400
@ IN SOA www.linuxcn.com. root.linuxcn.com.(
2002103000 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum
linuxcn.com IN NS www.linuxcn.com.
www IN A 10.14.70.89
ftp IN A 10.14.70.89
bbs IN A 10.14.70.89
localhost IN A 127.0.0.1
6>;/var/named/named.rev:
$TTL 86400
@ IN SOA www.linuxcn.com. root.linuxcn.com.(
2002103000 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ; Minimum
)
IN NS www.linuxcn.com.
89 IN PTR www.linuxcn.com.
7>;/var/named/named.localTTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
以上是我的一些配置文件,但出错,错误提示:
[root@linuxcn root]# named -g
May 12 09:46:27.421 starting BIND 9.2.2 -g
May 12 09:46:27.440 using 1 CPU
May 12 09:46:27.449 loading configuration from '/etc/named.conf'
May 12 09:46:27.591 no IPv6 interfaces found
May 12 09:46:27.591 listening on IPv4 interface lo, 127.0.0.1#53
May 12 09:46:27.593 binding TCP socket: address in use
May 12 09:46:27.593 listening on IPv4 interface eth0, 10.14.70.89#53
May 12 09:46:27.593 binding TCP socket: address in use
May 12 09:46:27.614 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use
May 12 09:46:27.615 ignoring config file logging statement due to -g option
May 12 09:46:27.615 couldn't open pid file '/var/run/named/named.pid': Permission denied
May 12 09:46:27.615 exiting (due to early fatal error)
[root@linuxcn root]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
>; www.linuxcn.com
Server: 10.14.70.89
Address: 10.14.70.89#53
** server can't find www.linuxcn.com: SERVFAIL
请大家帮我看看那里错了,急啊 |
|