QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 588|回复: 0

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

[复制链接]
发表于 2003-5-2 18:50:50 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 00:08 , Processed in 0.064402 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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