DNS问题

由 yghanzi 在 12-05-2002 09:12 发表:

DNS问题

/etc/resolv.conf*****

domain www.yghong.com

nameserver 192.168.10.4

nameserver 202.96.134.133

nameserver 202.96.128.68

/etc/named.conf*****

options {

directory "/var/named";

};

zone "." IN {

type hint;

file "named.ca";

};

zone "0.0.127.in-addr.arpa" IN {

type master;

file "named.local";

};

zone "www.yghong.com" IN {

type master;

file "named.hosts";

};

zone "10.168.192.in-addr.arpa" IN {

type master;

file "named.10.168.192";

};

********************/etc/hosts *************************

127.0.0.1 localhost.localdomain localhost

192.168.10.4 www.yghong.com www

********************/var/named/named.10.168.192 *************************

@ IN SOA www.yghong.com. root. www.yghong.com. (

2002112704 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS www.yghong.com.

4 IN PTR www.yghong.com.

********************/var/named/named.hosts *************************

@ IN SOA www.yghong.com. root. www.yghong.com. (

2002112704 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS www.yghong.com.

localhost IN A 127.0.0.1

www IN A 192.168.10.4

@ IN A 192.168.10.4

以上是我的关于DNS配置用到的几个文件

我的问题是这样的

  1. 一台win2000 一台RH8.0

  2. rh8.0 的 ip 为192.168.10.4, 域名: www.yghong.com

3) win2000能ping 通192.168.10.4 但不能ping 通 www.yghong.com

  1. RH8.0 能ping 通192.168.10.4 也能ping 通自己 www.yghong.com

且在IE里输入192.168.10.4或127.0.0.1 或是 www.yghong.com或是localhost都能访问到Test Page ( RH8.0测试页面 )

5) win2000机器在IE里输入192.168.10.4才能访问到Test Page RH8.0测试页面

win2000机器在IE里输入 www.yghong.com不能访问到Test Page RH8.0测试页面

  1. #nslookup 192.168.10.4 提示:server can't find 4.10.168.192.in-addr.arpa:servfail

#nslookup www.yghong.com 提示:server can't find www.yghong.com :servfail


由 iamycf 在 12-05-2002 13:47 发表:


WIN2000的DNS设为REDHAT8机器的IP了没有?否则如何知道到哪找DNS服务器?


由 dancingpig 在 12-05-2002 14:20 发表:


呵呵iamycf高,偶看了还没反映过来:)


由 yghanzi 在 12-05-2002 16:35 发表:


设了。看看1-6.因为 nslookup 192.168.10.4 这关都没过呀

继续从其它方面找找

  1. #nslookup 192.168.10.4 提示:server can't find 4.10.168.192.in-addr.arpa:servfail

#nslookup www.yghong.com 提示:server can't find www.yghong.com :servfail


由 yghanzi 在 12-06-2002 09:11 发表:


我顶


由 pandonny 在 12-06-2002 09:49 发表:


兄弟,你贴的东西看得我眼睛都花了。。呵呵,贴给你一份我自己的吧,你可以参照一下:

----------------resolv.conf---------------------

nameserver 192.168.0.4

nameserver 202.96.209.5

nameserver 202.96.209.133

------------------------------------------------

---------------named.conf-----------------------

// generated by named-bootconf.pl

options {

directory "/var/named";

/*

  • 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 "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 "pandonny.org" IN {

type master;

file "pandonny.org";

};

zone "0.168.192.in-addr.arpa" IN {

type master;

file "192.168.0.rev";

};

-----------------------------------------

--------/var/name/pandonny.org-----------

$TTL 86400

$ORIGIN pandonny.org.

@ 1D IN SOA @ root.pandonny.org. (

42 ; serial (d. adams)

3S ; refresh

15M ; retry

1W ; expiry

1D ) ; minimum

1D IN NS @

1D IN MX 10 pandonny.org.

1D IN A 192.168.0.4

www IN A 192.168.0.5

mail IN A 192.168.0.6

------------------------------------------

----------/var/name/192.168.0.rev---------

$TTL 86400

@ IN SOA pandonny.org. root.pandonny.org. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

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