LinuxSir.cn,穿越时空的Linuxsir!

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

域名服务器的配置问题,帮忙看一下,谢谢

[复制链接]
发表于 2003-5-2 18:42:24 | 显示全部楼层 |阅读模式
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 "138.52.61.in-addr.arpa" IN {  //为本机外网IP 61.52.138.200
        type master;
        file "db.61.52.138.200";
        allow-update { none; };
};

zone "mydns.com" IN {   //为本机域名 (本机名也为mydns)
        type master;
        file "mydns.com.db";
        allow-update { none; };
};

include "/etc/rndc.key";


resolv.conf

domain mydns.com
search mydns.com
nameserver 61.52.138.200
nameserver 202.102.224.68
nameserver 202.102.227.68

//db.61.52.138.200


$TTL 86400
@ IN SOA 61.52.138.200 maa.ydns.com. (
       2003050200 ; Serial
       28800 ; Refresh
       14400 ; Retry
       3600000 ; Expire
       86400 ); Minimum
   IN NS www.mydns.com.
   200 IN PTR www



//mydns.com.db

$TTL 86400

@ IN SOA www.mydns.com. aaa.mydns.com. (
       2003050200 ; Serial
       28800 ; Refresh
       14400 ; Retry
       3600000 ; Expire
       86400 ); Minimum
   IN NS www.mydns.com.
   localhost IN A 127.0.0.1
   www       IN A 61.52.138.200


[root@java named]# rpm -qa |grep bind
bind-utils-9.2.1-9
ypbind-1.11-2
bind-9.2.1-9
redhat-config-bind-1.8.1-18

//我机子上的bind文件和版本


[root@java named]# nslookup
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> mydns.com
Server:         61.52.138.200
Address:        61.52.138.200#53

** server can't find mydns.com: SERVFAIL
> www.mydns.com
Server:         61.52.138.200
Address:        61.52.138.200#53

** server can't find www.mydns.com: SERVFAIL
> set type=NS
> mydns.com
Server:         61.52.138.200
Address:        61.52.138.200#53

** server can't find mydns.com: SERVFAIL
>


请大家帮我看看,是那里配置的不对,谢谢,如有疑请于我联系QQ:4636814
 楼主| 发表于 2003-5-3 11:11:38 | 显示全部楼层
帮帮忙吗!
发表于 2003-5-3 13:00:18 | 显示全部楼层
这个我没有用过,不过我现在用的也是论坛上兄弟介绍的一个
www.dns0755.net 上面申请的一个域名,倒是蛮方便的,要么可以试试看1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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