- 论坛徽章:
- 0
|
各位帮我看看,我安装配置的bind。内容如下:
1、我安装了四个包,如下:
[root@xinn2013 etc]# rpm -qa|grep bind
bind-utils-9.2.4-2
ypbind-1.17.2-3
bind-libs-9.2.4-2
bind-9.2.4-2
[root@xinn2013 etc]#
2、/etc/named.conf,文件内容如下:
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "ar/named";
dump-file "ar/named/data/cache_dump.db";
statistics-file "ar/named/data/named_stats.txt";
/*
* 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 "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "xinn1983.com" IN {
type master;
file "xinn.com.zone";
};
zone "99.168.192.in-addr.arpa" IN {
type master;
file "192.168.99.rev";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
include "/etc/rndc.key";
3、ar/namedn1983.com.zone的内容,如下
$TTL 86400
@ IN SOA ns1.xinn1983.com. hostmaster.xinn1983.com.(
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns1.xinn1983.com.
ns1 IN A 192.168.99.5
4、ar/named/192.168.99.rev的内容,如下
$TTL 86400
@ IN SOA ns1.xinn1983.com. hostmaster.xinn1983.com.(
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns1.xinn1983.com.
2 IN PTR ns1.xinn1983.com.
10 IN PTR host1.xinn1983.com.
5、/etc/resolv.conf,如下:
[root@xinn2013 etc]# vi resolv.conf
[root@xinn2013 etc]# cat resolv.conf
nameserver 192.168.99.5
search xinn1983.com
[root@xinn2013 etc]#
6、测试,如下:
[root@xinn2013 /]# host xinn1983.com
Host xinn1983.com not found: 2(SERVFAIL)
[root@xinn2013 etc]# nslookup
> xinn1983.com
Server: 192.168.99.5
Address: 192.168.99.5#53
** server can't find xinn1983.com: SERVFAIL
>
这是什么原因?各位看看。
是什么原因。 |
|