关于DNS的问题,请大家看看讨论一下!

由 longlei 在 06-24-2004 22:10 发表:

关于DNS的问题,请大家看看讨论一下!

我用的是REDHAT 9 bind-9.2.1-16的包,系统开始时选装的,主机名是biglong

我的/etc/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 "lei.com" {

type master;

file "lei.com.zone";

};

zone "1.168.192.in-addr.arpa" {

type master;

file "192.168.1.rev";

};

include "/etc/rndc.key";

我的lei.com.zone文件配置如下:

$ttl 1D

@ IN SOA biglong.lei.com. root.biglong.lei.com. (

1997022700

3H

15M

1W

1D )

IN NS biglong.lei.com.

IN MX 5 biglong.lei.com.

biglong IN A 192.168.1.33

www IN CNAME biglong.lei.com.

我的反向区域文件192.168.1.rev配置如下:

$TTL 86400

@ IN SOA biglong.lei.com. root.biglong.lei.com. (

1997022700

3H

15M

1W

1D)

IN NS biglong.lei.com.

33 IN PTR biglong.lei.com.

以上就是我的配置文件,

那么现在我修改/etc/resolv.conf 添加nameserver 192.168.1.33

最后用host biglong.lei.com后得出以下结果

Host biglong.lei.com not found: 2(SERVFAIL)

这明显是上面有问题的说可我实在是找不出来问题,哪位大大能够指点一下,谢谢!


由 longlei 在 06-24-2004 22:15 发表:


在线等待中!


由 longlei 在 06-24-2004 22:49 发表:


各位老大,帮帮忙啦!我在这里鞠躬了!


由 Snoopy 在 06-24-2004 22:49 发表:


日志怎么说 ?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Snoopy 在 06-24-2004 22:50 发表:


cat /var/log/messages |grep named


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 longlei 在 06-24-2004 22:56 发表:


Jun 24 20:27:51 biglong named[1078]: starting BIND 9.2.1 -u named

Jun 24 20:27:51 biglong named[1078]: using 1 CPU

Jun 24 20:27:51 biglong named: named startup succeeded

Jun 24 20:27:51 biglong named[1078]: loading configuration from '/etc/named.conf'

Jun 24 20:27:51 biglong named[1078]: no IPv6 interfaces found

Jun 24 20:27:51 biglong named[1078]: listening on IPv4 interface lo, 127.0.0.1#53

Jun 24 20:27:51 biglong named[1078]: listening on IPv4 interface eth0, 192.168.1.33#53

Jun 24 20:27:52 biglong named[1078]: command channel listening on 127.0.0.1#953

Jun 24 20:27:52 biglong named[1078]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700

Jun 24 20:27:52 biglong named[1078]: zone 1.168.192.in-addr.arpa/IN: loading master file 192.168.1.rev: file not found

Jun 24 20:27:52 biglong named[1078]: dns_master_load: lei.com.zone:11: unknown RR type 'biglong'

Jun 24 20:27:52 biglong named[1078]: zone lei.com/IN: loading master file lei.com.zone: unknown class/type

Jun 24 20:27:52 biglong named[1078]: zone localhost/IN: loaded serial 42

Jun 24 20:27:52 biglong named[1078]: running

Jun 24 20:28:48 biglong named[1078]: app.c:561: unexpected error:

Jun 24 20:28:48 biglong named[1078]: isc_app_shutdown() pthread_kill: No such process

Jun 24 21:59:15 biglong named[692]: starting BIND 9.2.1 -u named

Jun 24 21:59:15 biglong named[692]: using 1 CPU

Jun 24 21:59:15 biglong named: named startup succeeded

Jun 24 21:59:16 biglong named[692]: loading configuration from '/etc/named.conf'

Jun 24 21:59:16 biglong named[692]: no IPv6 interfaces found

Jun 24 21:59:16 biglong named[692]: listening on IPv4 interface lo, 127.0.0.1#53

Jun 24 21:59:16 biglong named[692]: listening on IPv4 interface eth0, 192.168.1.33#53

Jun 24 21:59:17 biglong named[692]: command channel listening on 127.0.0.1#953

Jun 24 21:59:17 biglong named[692]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700

Jun 24 21:59:17 biglong named[692]: zone 1.168.192.in-addr.arpa/IN: loaded serial 1997022700

Jun 24 21:59:18 biglong named[692]: dns_master_load: lei.com.zone:10: unknown RR type 'biglong'

Jun 24 21:59:18 biglong named[692]: zone lei.com/IN: loading master file lei.com.zone: unknown class/type

Jun 24 21:59:18 biglong named[692]: zone localhost/IN: loaded serial 42

Jun 24 21:59:18 biglong named[692]: running

Jun 24 22:05:44 biglong named[692]: app.c:561: unexpected error:

Jun 24 22:05:44 biglong named[692]: isc_app_shutdown() pthread_kill: No such process

日志是这么说的!


由 longlei 在 06-24-2004 23:00 发表:


怎么会找不到192.168.1.rev呢!?

[root@biglong named]# ls

192.168.1.rev lei.com.zone localhost.zone named.ca named_dump.db named.local

[root@biglong named]# pwd

/var/named

[root@biglong named]# ll

total 24

-rw-r--r-- 1 root root 396 Jun 24 22:50 192.168.1.rev

-rw-r--r-- 1 root root 494 Jun 24 22:57 lei.com.zone

-rw-r--r-- 1 named named 195 Jan 25 2003 localhost.zone

-rw-r--r-- 1 named named 2499 Jan 25 2003 named.ca

-rw-r--r-- 1 named named 57 Jun 24 20:43 named_dump.db

-rw-r--r-- 1 named named

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