LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 895|回复: 4

all file

[复制链接]
发表于 2004-5-8 20:42:44 | 显示全部楼层 |阅读模式
/////   named.conf

options {
                                                                                
    directory "/etc/namedb";
                                                                                
    pid-file "/var/run/named/pid";
                                                                                
};
                                                                                
                                                                                
                                                                                
zone "." {
                                                                                
    type hint;
                                                                                
    file "named.root";
                                                                                
};
zone "localhost" {
                                                                                
    type master;
                                                                                
    file "localhost.zone";
                                                                                
};
                                                                                
                                                                                
                                                                                
zone "0.0.127.in-addr.arpa" {
                                                                                
    type master;
                                                                                
    file "localhost.rev";
};
zone "sun.com" {
                                                                                
    type master;
                                                                                
    file "sun.com.rev";
                                                                                
};
                                                                                
                                                                                
                                                                                
zone "28.198.202.in-addr.arpa" {
                                                                                
    type master;
                                                                                
    file "202.198.28.rev";
};



////    localhost.rev
$TTL    3600
                                                                                
@       IN      SOA     sjs.sun.com  root.sjs.sun.com  (
                                20040507        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
        IN      NS      sjs.sun.com
        IN       A      202.198.28.61


/////sun.com.rev
TTL    3600
                                                                                
@       IN      SOA     sjs.sun.com  root.sjs.sun.com  (
                                20040507        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
        IN      NS      sjs.sun.com.
                                                                                
        IN      A     202.198.28.61
        sjs  IN  A   202.198.28.61


/////202.198.28.rev
$TTL  3600
                                                                                
@       IN      SOA     sjs.sun.com  root.sjs.sun.com  (
                                20040507        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
        IN      NS      sjs.sun.com.
        IN     A     202.198.28.61
                                                                                
        61.28.198.202   IN PTR   sjs.sun.com.

//////  resovle.conf file  
domain     sun.com
nameserver      202.198.28.61   (my ip)

//////hosts  file

::1                     localhost.sun.com  localhost
127.0.0.1               localhost.sun.com   localhost
202.198.28.61            sjs.sun.com  sun.com
202.198.28.61            sun.com
发表于 2004-5-8 20:48:55 | 显示全部楼层
localhost.rev中加入一个
1 IN PTR localhost.

resovle.conf加入一个:
nameserver 127.0.0.1 加在最上面!
发表于 2004-5-9 11:39:54 | 显示全部楼层

回复: all file

最初由 sunjinsong 发表
/////   named.conf
options {
    directory "/etc/namedb";   
    pid-file "/var/run/named/pid";
};
zone "." {
    type hint;
    file "named.root";
};
zone "localhost" {
    type master;
    file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" {
    type master;
    file "localhost.rev";
};
zone "sun.com" {
    type master;
    file "sun.com.rev";     
};
zone "28.198.202.in-addr.arpa" {
    type master;
    file "202.198.28.rev";
};


////    localhost.rev
$TTL    3600
                                                                                
@       IN      SOA     sjs.sun.com  root.sjs.sun.com  (
                                20040507        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
        IN      NS      sjs.sun.com
        IN       A      202.198.28.61


/////sun.com.rev
TTL    3600
                                                                                
@       IN      SOA     sjs.sun.com  root.sjs.sun.com  (
                                20040507        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
        IN      NS      sjs.sun.com.
                                                                                
        IN      A     202.198.28.61
        sjs  IN  A   202.198.28.61


/////202.198.28.rev
$TTL  3600
                                                                                
@       IN      SOA     sjs.sun.com  root.sjs.sun.com  (
                                20040507        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum
        IN      NS      sjs.sun.com.
        IN     A     202.198.28.61
                                                                                
        61.28.198.202   IN PTR   sjs.sun.com.

//////  resovle.conf file  
domain     sun.com
nameserver      202.198.28.61   (my ip)

//////hosts  file

::1                     localhost.sun.com  localhost
127.0.0.1               localhost.sun.com   localhost
202.198.28.61            sjs.sun.com  sun.com
202.198.28.61            sun.com


注意看红色的部分。
发表于 2004-5-9 11:44:25 | 显示全部楼层

这样看看:

第一处:
    前面加上sjs,即,改为:
    sjs IN A 202.198.28.61
第二出:
    只是一个61就可以了,要么后面加上.。也就是说可以是下面两种:
    61.28.198.202. IN PTR sjs.sun.com.
    61 IN PTR sjs.sun.com.
第三处:
    应该是:202.198.28.61 sjs.sun.com sjs


#####################################
然后看看有启动以及解析的时候有什么错误。
 楼主| 发表于 2004-5-9 12:22:51 | 显示全部楼层
Can't find server name for address 202.198.28.61: Timed out
*** Can't find server name for address 202.198.28.61: Timed out
*** Default servers are not available

还是不行啊  ,,不知道怎么回事  有时出现这样的提示

  我把你的文件拷贝过去了

相应的 也都改了
  启动 也没有报错,,但是  就是不能解析
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表