|
我在etc/resolv.conf内容如下
nameserver 202.116.128.1
nameserver 202.116.17.33
domain snoopy.gov
search snoopy.gov
nameserver 192.168.112.88
etc/named.conf的内容如下
// generated by named-bootconf.pl
options {
directory "/var/named";
version"Snoopy.vaersion";
forward only;
forwarders{192.168.100.1;};
};
* 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; };
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";
创建了var/named/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
mail IN CNSME dns.snoopy.gov.
创建了var/named/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 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
怎么回事啊,,,,,其中问题出在哪呢????急,,,,,麻烦大家 |
|