[求救-DNS正反解設定有誤] 能否請幫我看我問題癥結在哪



贊助商連結


vicky2395
2002-10-01, 03:12 AM
正解

; This file is automatically edited by the `make-localhost' script in
; the /etc/namedb directory.
;

$TTL 3600

@ IN SOA yy.xx.idv.tw. root.yy.xx.idv.tw. (
20020928 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS yy.xx.idv.tw.
A 61.xx.xx.xx
www IN A 61.xx.xx.xx
ftp IN CNAME www
mail IN A www.xx.idv.tw
---------------------------------------------------------------------------------

反解

; From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90
; $FreeBSD: src/etc/namedb/PROTO.localhost.rev,v 1.6 2000/01/10 15:31:40 peter E
xp $
;
; This file is automatically edited by the `make-localhost' script in
; the /etc/namedb directory.
;

$TTL 3600

@ IN SOA yy.xx.idv.tw. root.yy.xx.idv.tw. (
20020928 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS yy.xx.idv.tw.
1 IN PTR localhost.xx.idv.tw.
2 IN PTR xx.idv.tw.
3 IN PTR www.xx.idv.tw.
4 IN PTR mail.xx.idv.tw.
~
~
xx.xx.61.in-addr.arpa: unmodified: line
-----------------------------------------------------------------------------

named.conf

// $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.4 2001/12/05 22:10:12 cjc Exp $
//
// Refer to the named.conf(5) and named( man pages for details. If
// you are ever going to setup a primary server, make sure you've
// understood the hairy details of how DNS is working. Even with
// simple mistakes, you can break connectivity for affected parties,
// or cause huge amount of useless Internet traffic.

options {
directory "/etc/namedb";

// In addition to the "forwarders" clause, you can force your name
// server to never initiate queries of its own, but always ask its
// forwarders only, by enabling the following line:
//
// forward only;

// If you've got a DNS server around at your upstream provider, enter
// its IP address here, and enable the line below. This will make you
// benefit from its cache, thus reduce overall DNS traffic in the Internet.

forwarders {
61.xx.xx.xx;---這裡改成我的ip

(中間省略...到最後兩段設定)


//
// mkdir /etc/namedb/s
// chown bind:bind /etc/namedb/s
// chmod 750 /etc/namedb/s

zone "xx.idv.tw" {
type master;
masters {
61.xx.xx.xx;
};
};

zone "xx.xx.61.in-addr.arpa" {
type master;
file "xx.xx.61.in-addr.arpa";
masters {
};
};

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

rc.conf 增加下列三行

named_enable="YES"
named_progream="/usr/local/sbin/named"
named_flags="-b /etc/named/named.conf"

...我用nslookup正反解還是解不出來.
請問我問題的癥結出在哪?
謝謝先.