请教一个关于BIND 正向解析的问题 先谢谢大家了。
Connection time out ; no servers could be reached
请教大家一下,我问题是出在哪里?我搞了一天了。/var/log/messages 没有任何权限或者错误信息。running的
目的: 实验搭建BIND
域名: rt.com
本机: rv1.rt.com rv1
IP : 172.24.20.1
安装包: yum install bind bind-utils bind-sdb bind-devel bind-libs caching-nameserver bind-chroot
问题:正向解析报错 Connection time out ; no servers could be reached
基本信息:
/etc/sysconfig/network-script/ifcfg-eth0
bootproto=static
ip 172.24.20.1
netmask 255.255.255.0
broadcast 127.24.20.255
network 172.24.20.0
/etc/sysconfig/network
gateway=172.24.20.1
networking=yes
hostname=rv1.rt.com
/etc/resolver.conf
search rt.com
nameserver 172.24.20.1
/etc/hosts
127.0.0.1 rv1.rt.com rv1 localhost.localdomain localhost
172.24.20.1 rv1.rt.com rv1
/etc/name.caching-server (只列了修改的地方)
listen-on port 53 { 172.24.20.1; };
allow-query { 172.24.20.0/24; };
match-clients { 172.24.20.0/24; };
/etc/named.rfc1912.zone(只列了修改的地方)
zone "rt.com.zone" IN {
type master;
file "rt.com.zone";
allow-update { none; };
};
zone "20.24.172.in-addr.arpa" IN {
type master;
file "20.24.172.in-addr.arpa.zone";
allow-update { none; };
};
/var/named/chroot/var/named/rt.com.zone
$TTL 86400
@ IN SOA rv1.rt.com. root.rt.com. (
42
3H
15M
1W
1D)
IN NS rv1.rt.com.
IN A 127.0.0.1
IN AAAA ::1
rv1 IN A 172.24.20.1
rv2 IN A 172.24.20.2
/var/named/chroot/var/named/20.24.172.in-addr.arpa.zone
$TTL 86400
@ IN SOA rv1.rt.com. root.rt.com. (
1997022700
28800
14400
3600000
86400)
IN NS rv1.rt.com.
1 IN PTR rv1.rt.com.
2 IN PTR rv2.rt.com.
named-checkconf /etc/named.caching-nameserver
named-checkconf /etc/named.rfc1912.zone
named-checkzone rt.com rt.com.zone
zone rt.com/IN: loaded serial 42
OK
named-checkzone rt.com 20.24.172.in-addr.arpa.zone
zone rt.com/IN: loaded serial 1997022700
OK
nslookup 反向解析ok
>
server: 172.24.20.1
address: 172.24.20.1#53
1.20.24.172.in-addr.arpa name = rv1.rt.com.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
回复 1# netsporting
@ IN SOA rv1.rt.com. root.rt.com. (
1997022700
@ IN SOA rv1.rt.com. root.rt.com. (
42
回复 1# netsporting
http://lxsym.blog.51cto.com/1364623/426323 参考这个吧 论坛贴的太多了 你的和他的类似
把正向的rt.com.zone的127, ::1注释掉看看....你现在是本机不能解析把,客户端呢