QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2562|回复: 3

RHEL AS4 上架设DNS服务器问题

[复制链接]
发表于 2008-2-21 14:10:53 | 显示全部楼层 |阅读模式
求教高手帮我看看 dns问题。 环境是RHEL 4 系统带的bind 。
C:\Documents and Settings\Daniel>nslookup
Default Server: dns.shdmt.net.159.168.192.in-addr.arpa
Address: 192.168.159.237

> 192.168.159.237
Server: dns.shdmt.net.159.168.192.in-addr.arpa
Address: 192.168.159.237

我想ip对应的应该是dns.shdmt.net, 怎么结果解析出来这么长呢,不知道是不是正常?

以下是我的配置

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 "shdmt.net" IN {
type master;
file"shdmt.zone";
};

zone "159.168.192.in-addr.arpa" IN {
type master;
file "shdmt.local";
};

include "/etc/rndc.key";


反向解析 shdmt.local内容

@ IN SOA dns.shdmt.net root.dns(
20080219 ;serial
28800 ;refresh
7200 ;retry
604800 ;expire
86400 ;minimum
)
@ IN NS dns.shdmt.net
237 IN PTR dns.shdmt.net

日志是:

Feb 21 13:15:19 dns named[3244]: starting BIND 9.2.4 -u named -t

/var/named/chroot
Feb 21 13:15:19 dns named[3244]: using 1 CPU
Feb 21 13:15:19 dns named[3244]: loading configuration from '/etc/named.conf'
Feb 21 13:15:19 dns named[3244]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 21 13:15:19 dns named[3244]: listening on IPv4 interface eth0,

192.168.159.237#53
Feb 21 13:15:19 dns named[3244]: command channel listening on 127.0.0.1#953
Feb 21 13:15:19 dns named[3244]: zone 0.0.127.in-addr.arpa/IN: loaded serial

1997022700
Feb 21 13:15:19 dns named[3244]: zone 159.168.192.in-addr.arpa/IN: loaded

serial 2008021901
Feb 21 13:15:19 dns named[3244]: zone localdomain/IN: loaded serial 42
Feb 21 13:15:19 dns named[3244]: zone localhost/IN: loaded serial 42
Feb 21 13:15:19 dns named[3244]: zone shdmt.net/IN: loaded serial 2008021901
Feb 21 13:15:19 dns named[3244]: running
Feb 21 13:15:19 dns named[3244]: zone shdmt.net/IN: sending notifies (serial

2008021901)
Feb 21 13:41:47 dns sshd(pam_unix)[3261]: session opened for user root by root

(uid=0)
发表于 2008-2-21 23:56:58 | 显示全部楼层
你的区域文件呢?可不可以看下你的区域文件?
回复

使用道具 举报

 楼主| 发表于 2008-2-22 14:25:01 | 显示全部楼层
自己有摸出来了一点  RR 写的时候要贴着左边从第一个字符开始
还有完整的域名后面要加‘.’  改完现在如下
[root@dns /]# nslookup
> 192.168.159.237
Server:        192.168.159.237
Address:        192.168.159.237#53

237.159.168.192.in-addr.arpa      name = dns.shdmt.net.
回复

使用道具 举报

发表于 2008-3-10 17:14:51 | 显示全部楼层
装个webmin吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 00:39 , Processed in 0.073546 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表