|
我照文章设置了下面这些,但启动时却显示
[root@Snoopy init.d]# named start
usage: named [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
[-p port] [-s] [-t chrootdir] [-u username]
named: extra command line arguments
[root@Snoopy init.d]#
我是这样设置的,你们看看
首先修改文件/etc/resolv.conf
[root@Snoopy etc]# cat resolv.conf
nameserver 202.116.128.1
nameserver 202.116.17.33
domain snoopy.gov
search snoopy.gov
[root@Snoopy etc]#
etc/named.conf
[root@Snoopy etc]# cat named.conf
// generated by named-bootconf.pl
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 "snoopy.gov" {
type master;
file "snoopy.gov.rev";
};
zone "112.168.192.in-addr.arpa" {
type master;
file "192.168.112.PTR";
};
include "/etc/rndc.key";
创建了两个文件
[root@Snoopy named]# cat snoopy.gov.rev
$TTL 86400
@ IN SOA snoopy.gov. root.local. (
2003030801
28800
14400
3600000
86400)
IN NS dns.snoopy.gov.
MX 10 192.168.112.88
dns IN A 192.168.112.88
www IN A 192.168.112.88
[root@Snoopy named]#
[root@Snoopy named]# cat 192.168.112.PTR
$TTL 86400
@ IN SOA snoopy.gov. root.local.(
2003030802
28800
14400
3600000
86400)
IN NS dns.snoopy.gov.
61 IN PTR dns.snoopy.gov.
[root@Snoopy named]#
启动却起不了,怎么办啊???大家看看我这里哪里设置错了好吗 ?
麻烦你们了,谢谢 |
|