歡迎您光臨本站 註冊首頁

SOS DNS能啟動,但是找不到配置文件?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

SOS DNS能啟動,但是找不到配置文件?

我配置name.conf :
zone "." {
        type hint;
        file "named.root";
};
*/

zone "0.0.127.in-addr.arpa" {
         type master;
         file "maset/localhost.rev";
         notify no ;
};

zone "zhmysh.edu.cn" {
         type master;
         file "master/zhmysh.edu.cn";
};

zone "0.168.192.in-addr.arpa" {
         type master;
         file "maser/192.168.0.in-addr.arpa";
};

出現錯誤:
Apr 10 11:50:54 edu named: starting BIND 9.4.2 -t /var/named -u bind
Apr 10 11:50:54 edu named: command channel listening on 127.0.0.1#953
Apr 10 11:50:54 edu named: command channel listening on ::1#953
Apr 10 11:50:54 edu named: zone 0.0.127.in-addr.arpa/IN: loading from master file maset/localhost.rev failed: file not found
Apr 10 11:50:54 edu named: zone 0.168.192.in-addr.arpa/IN: loading from master file maser/192.168.0.in-addr.arpa failed: file
Apr 10 11:50:54 edu named: zone zhmysh.edu.cn/IN: loading from master file master/zhmysh.edu.cn.db failed: file not found
Apr 10 11:50:54 edu named: running


三個配置都找不到. 在目錄master本身並沒有localhost.rev ,是否要手動產生?在master目錄其他兩個文件,許可權:root:wheel  配置如下:
文件192.168.0.in-addr.arpa 配置如下:
$TTL 600           ;
@   IN  SOA   dns.zhmysh.edu.cn.   root.dns.zhmysh.edu.cn. (
        2008040916 ;
        28800      ;
        14400      ;
        720000     ;
        86400 )    ;
   IN   NS   dns.zhmysh.edu.cn.  ;
   IN   PTR  dns.zhmysh.edu.cn.  ;
83   IN  PTR  dns.zhmysh.edu.cn.  ;

文件zhmysh.edu.cn配置如下:
$TTL 600           ;
@   IN  SOA   dns.zhmysh.edu.cn.   root.dns.zhmysh.edu.cn. (
        2008040916 ;
        28800      ;
        14400      ;
        720000     ;
        86400 )    ;
   IN   NS  dns.zhmysh.edu.cn. ;
   IN   A   192.168.0.83       ;
dns   IN A  192.168.0.83       ;

是否是配置文件那裡設置錯誤...?   --help
《解決方案》

在FreeBSD下配置,我是看了別人的在freeBSD的配置...依樣畫葫蘆.....還是出現錯誤...請高手指正....
《解決方案》

還是和上面錯誤報一樣的嗎?
《解決方案》

原帖由 zhmysh 於 2008-4-10 13:48 發表 http://bbs.chinaunix.net/images/common/back.gif
我配置name.conf :
zone "." {
        type hint;
        file "named.root";
};
*/

zone "0.0.127.in-addr.arpa" {
         type master;
         file "maset/localhost.rev";
         not ...

暈倒,文件名寫錯了,應該是master/吧,你寫成了maset
《解決方案》

呵呵...低級失誤.....
但是更改以後. 用host  192.138.0.83 (我機子的IP地址) 出現錯誤:Host 83.0.168.192.in-addr.arpa. not found: 3(NXDOMAIN)......錯誤看不懂那裡有錯?

請高手....指明一條名路...呵呵
《解決方案》

啟動named 的/var/log/messages:
Apr 10 14:32:35 edu named: starting BIND 9.4.2 -t /var/named -u bind
Apr 10 14:32:35 edu named: command channel listening on 127.0.0.1#953
Apr 10 14:32:35 edu named: command channel listening on ::1#953   
Apr 10 14:32:36 edu named: master/0.168.192.in-addr.arpa:10: TTL set to prior TTL (600)
Apr 10 14:32:36 edu named: running

急急.........
《解決方案》

原帖由 zhmysh 於 2008-4-10 15:01 發表 http://bbs.chinaunix.net/images/common/back.gif
呵呵...低級失誤.....
但是更改以後. 用host  192.138.0.83 (我機子的IP地址) 出現錯誤:Host 83.0.168.192.in-addr.arpa. not found: 3(NXDOMAIN)......錯誤看不懂那裡有錯?

請高手....指明一條名路...呵呵

把你的named.conf貼出來看看,還有逆向解析文件也貼出來。
你的/etc/resolv.conf是怎麼設置的?
《解決方案》

配置文件name.conf:
options {
        // Relative to the chroot directory, if any
        directory       "/etc/namedb";
        pid-file        "/var/run/named/pid";
        dump-file       "/var/dump/named_dump.db";
        statistics-file "/var/stats/named.stats";
        allow-query { any ;};

     
        forwarders {
                202.96.134.133;
        };

};

zone "0.0.127.in-addr.arpa" {
         type master;
         file "master/localhost.rev";
         notify no ;
};
  
zone "zhmysh.edu.cn" {
         type master;
         file "master/zhmysh.edu.cn";
};
        
zone "0.168.192.in-addr.arpa" {
         type master;
         file "master/0.168.192.in-addr.arpa";
};

配置文件zhmysh.edu.cn:
$TTL 600           ;
@   IN  SOA   dns.zhmysh.edu.cn.   root.dns.zhmysh.edu.cn. (
        2008040916 ;
        28800      ;
        14400      ;
        720000     ;
        86400 )    ;
   IN   NS  dns.zhmysh.edu.cn. ;
   IN   A   192.168.0.83       ;
dns   IN A  192.168.0.83       ;



配置文件0.168.192.in-addr.arpa

$TTL 600           ;
@   IN  SOA   dns.zhmysh.edu.cn.   root.dns.zhmysh.edu.cn. (
        2008040916 ;
        28800      ;
        14400      ;
        720000     ;
        86400 )    ;
   IN   NS   dns.zhmysh.edu.cn.  ;
   IN   PTR  dns.zhmysh.edu.cn.  ;
83   IN  PTR  dns.zhmysh.edu.cn.  ;

配置文件resolv.conf
domain  uspac.com.cn
nameserver      192.168.0.83                          
nameserver      202.96.134.133                        


host 192.168.0.83  顯示:Host 83.0.168.192.in-addr.arpa. not found: 3(NXDOMAIN) 以及/var/log/messages 信息如下:
Apr 10 16:13:33 edu named: starting BIND 9.4.2 -t /var/named -u bind
Apr 10 16:13:33 edu named: command channel listening on 127.0.0.1#953
Apr 10 16:13:33 edu named: command channel listening on ::1#953
Apr 10 16:13:33 edu named: master/0.168.192.in-addr.arpa:10: TTL set to prior TTL (600)
Apr 10 16:13:34 edu named: running
Apr 10 16:14:26 edu inetd: ssh/tcp: bind: Address already in use

請高手。。。幫忙看看。。。那地方有問題。?急。。。。。。。。
《解決方案》

回復 #8 zhmysh 的帖子

用dig或者nslookup的結果怎樣?
《解決方案》

%dig zhmysh.edu.cn

; <<>> DiG 9.4.2 <<>> zhmysh.edu.cn
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 19402
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;zhmysh.edu.cn.                 IN      A

;; AUTHORITY SECTION:
edu.cn.                 10496   IN      SOA     NS2.NET.edu.cn. HOSTMASTER.NET.edu.cn. 2008040816 14400 1800 604800 86400

;; Query time: 55 msec
;; SERVER: 202.96.134.133#53(202.96.134.133)
;; WHEN: Thu Apr 10 17:23:48 2008
;; MSG SIZE  rcvd: 86

%nslookup zhmysh.edu.cn
Server:         202.96.134.133
Address:        202.96.134.133#53

** server can't find zhmysh.edu.cn: NXDOMAIN

/var/log/messages:
Apr 10 16:45:13 edu inetd: ssh/tcp: bind: Address already in use
Apr 10 16:55:28 edu inetd: ssh/tcp: bind: Address already in use
Apr 10 17:05:44 edu inetd: ssh/tcp: bind: Address already in use
Apr 10 17:15:59 edu inetd: ssh/tcp: bind: Address already in use

幫忙看一下...在線等待

[火星人 ] SOS DNS能啟動,但是找不到配置文件?已經有769次圍觀

http://coctec.com/docs/service/show-post-31247.html