大家看看我的DNS哪里设置不对。

由 闪光 在 08-24-2002 13:40 发表:

大家看看我的DNS哪里设置不对。

我用的是RH7.3,经过配置后,测试出现如下结果:

[root@localhost f]# nslookup

Note: nslookup is deprecated and may be removed from future releases.

Consider using the dig' or host' programs instead. Run nslookup with the `-sil[ent]' option to prevent this message from appearing.

> linux.ziwen.org

Server: 127.0.0.1

Address: 127.0.0.1#53

Name: linux.ziwen.org

Address: 192.168.0.168

> 192.168.0.168

Server: 127.0.0.1

Address: 127.0.0.1#53

** server can't find 168.0.168.192.in-addr.arpa: NXDOMAIN

>

请问我是在哪里配置不对了呀?谢谢!!


由 David 在 08-24-2002 13:58 发表:


反向错了


由 闪光 在 08-25-2002 22:29 发表:

旧的问题解决,新的问题又来了

旧的问题解决,新的问题又来了。

我的机子是通过网吧的服务器上网的,在单机的时候DNS就ok,可一连上网就不行了,结果如下:

[root@localhost root]# nslookup

Note: nslookup is deprecated and may be removed from future releases.

Consider using the dig' or host' programs instead. Run nslookup with

the `-sil[ent]' option to prevent this message from appearing.

> linux.ziwen.org

Server: 192.168.0.1

Address: 192.168.0.1#53

** server can't find linux.ziwen.org: NXDOMAIN

> 192.168.0.168

Server: 192.168.0.1

Address: 192.168.0.1#53

** server can't find 168.0.168.192.in-addr.arpa: NXDOMAIN

>

server由原来的127.0.0.1变成了192.168.0.168

请问我该如何办,请好心人帮帮我,谢谢!


由 pandonny 在 08-26-2002 09:05 发表:


兄弟,把你的named.conf 以及正向、反向配置文件贴出来


关爱社区,共建家园!


由 闪光 在 08-26-2002 11:41 发表:


我的配置如下

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

type master;

file "named.hosts";

};

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

type master;

file "named.re

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