红联Linux门户
Linux帮助

RHEL5的bind配置求助

发布时间:2008-12-15 13:58:08来源:红联作者:huluo520
环境 linux主机 IP: 192.168.10.1 主机名是:nicke.jwdomain.com

客户机 IP: 192.168.10.2 名为:fmis

/etc/named.conf配置如下:


options{

directory "/var/named";

forwarders {192.168.1.2

};

pid-file "/var/run/named/named.pid";

};


zone "." {

type hint;

file "named.ca";

};

zone "localhost" {

type master;

file "named.zero";
};

zone "0.0.127.in-addr-arpa" {

type master;

file "named.local";

};

zone "jwdomain.com" {

type master;

file "jwdomain.zone";

};

zone "10.168.192.in-addr-arpa" {

type master;


file "192.168.10.zone";

};

再看看/var/named中的zone文件

jwdomain.zone文件如下:

$TTL 86400
@ IN SOA nicke.jwdomain.com. root.jwdomain.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS nicke.jwdomain.com.

nicke IN A 192.168.10.1

fmis IN A 192.168.10.2


192.168.10.zone文件如下:


$TTL 86400
@ IN SOA nicke.jwdomain.com. root.jwdomain.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS nicke.jwdomain.com.
1 IN PTR nicke.jwdomain.com.


现在是named服务已经启动。selinux也已经关闭。

[root@nicke named]# service named status
number of zones: 6
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/1000
tcp clients: 0/100
server is up and running

selinux的状态
[root@nicke named]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: disabled
Policy version: 21
Policy from config file: targeted

iptables的状态
[root@nicke named]# service iptables status
防火墙已停

但现在我在客户机上ping nicke.jwdomain.com提示unknown host nicke.jwdoamin.com
在服务器上ping同样是ping: unknown host nicke.jwdoamin.com。

请各位大虾帮看看,问题到底是出现在哪里!
本人菜鸟,望大家赐教。同时本人新学,请大家不要笑话我。呵呵!
文章评论

共有 2 条评论

  1. txwsqk 于 2008-12-18 13:01:03发表:

    在 /etc/resolv.conf这个文件 是否更改过
    domain 和 nameserver

  2. diokles 于 2008-12-17 16:14:46发表:

    把selinux关掉, 服务器端named服务重启, 再试.