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

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

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

; 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正反解還是解不出來.
請問我問題的癥結出在哪?
謝謝先.

回覆


類似的主題
主題 主題作者 討論版 回覆 最後發表
OutlookExpress的問題..求救..求救 keno -- 網 路 軟 體 討 論 一 版 (Browser,Email 4 2002-04-23 09:07 PM
我喜歡我班上的女生 求救~求救 ceneed -- 閒 話 家 常 灌 水 版 49 2001-10-28 12:33 PM
不知怎麼搞的,求救!求救! jeffyu -- 網 路 軟 體 討 論 一 版 (Browser,Email 3 2001-09-03 04:13 PM
求救!! 求救!! 中區第一批掛了642r-51 jps000 ---- ADSL 軟 硬 體 技 術 4 2001-06-03 03:44 PM
求救!! 求救!! 中區第二批掛了642r-51 aaronlai ---- ADSL 軟 硬 體 技 術 8 2001-05-06 02:59 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。