redhatA3上的DNS服务配置不成功?求教!

由 zyl_5 在 02-17-2004 16:55 发表:

redhatA3上的DNS服务配置不成功?求教!

我用redhatA3上自带的bind-9.2.2-21,bind-utils-9.2.2-21和caching-nameserver-7.2-7。本机ip:192.168.0.1,主机名zyl,域名我取的是domain.cxm。

resolv.conf文件如下:

search domain.cxm

nameserver 192.168.0.1

host.conf文件如下:

order bind,hosts

配置文件named.conf,named.192.168.0和named.domain.cxm如下:

####named.conf文件如下:

// generated by named-bootconf.pl

//

// a caching only nameserver config

//

options {

/*

  • 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;

directory "/var/named";

};

controls {

inet 127.0.0.1 allow { localhost; } keys { rndckey; };

};

zone "." {

type hint;

file "named.ca";

};

zone "localhost" {

allow-update { none; };

type master;

file "localhost.zone";

};

zone "0.0.127.in-addr.arpa" {

allow-update { none; };

type master;

file "named.local";

};

zone "domain.cxm" {

type master;

file "named.domain.cxm";

};

zone "0.168.192.in-addr.arpa" {

type master;

file "named.192.168.0";

};

include "/etc/rndc.key";

####named.192.168.0文件如下:

$TTL 86400

@ IN SOA zyl.domain.cxm. root.domain.cxm. (

1997022728 ; serial

28800 ; refresh

14400 ; retry

3600000 ; expire

86400 ; ttl

)

@ IN NS zyl.domain.cxm.

1 IN PTR zyl.domain.cxm.

####named.domain.cxm文件如下:

$TTL 86400

@ IN SOA zyl.domain.cxm. root.domain.cxm. (

200

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus