QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 614|回复: 1

我的DNS的问题!

[复制链接]
发表于 2003-2-18 20:55:55 | 显示全部楼层 |阅读模式
我的DNS的问题!

named.conf的配置文件:

options {
directory "/var/named";
};
//
// a caching only nameserver config
//
controls{
inet 127.0.0.1 allow{
localhost;
} keys{
rndckey;
};
};
key "rndckey"{
algorithm hmac-md5;
secret "XKMxppFnfjMB0jroCOLnnqBbGKMdWpoiOhJE0TMNprNtTSogvhLsLNE0LyaQ";
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" in{
type master;
file "localhost.zone";
allow-update{
none;
};
};
zone "51flight.com" in{
type master;
file "51flight.com.zone";
};
zone "0.0.127.in-addr.arpa" in{
type master;
file "named.local";
allow-update{
none;
};
};
zone "0.168.192.IN-ADDR.ARPA" in{
type master;
file "0.168.192.in-addr.arpa.zone";
};
~
~
~
~

51flight.com.zone的配置文件:

$TTL 86400
@ IN SOA @ root.localhost. (
2003021701 ; serial
8H ; refresh
2H ; retry
7D ; expire
1D ; default_ttl
)
www IN A 192.168.0.1
niit IN A 192.168.0.1
mail IN A 192.168.0.1
@ IN MX 5 mail.51flight.com.
@ IN NS 192.168.0.1.
~

0.168.192.in-addr.arpa.zone的配置文件:

$TTL 86400
@ IN SOA @ root.localhost. (
2003021701 ; serial
8H ; refresh
2H ; retry
7D ; expire
1D ; default_ttl
)
1 IN PTR www.51flight.com.
@ IN NS 192.168.0.1.
~

执行/etc/rc.d/init.d/named start的结果:

[root@server named]# tail -f /var/log/messages
Feb 17 23:06:06 server named[2081]: listening on IPv4 interface eth0:0, 192.168.0.1#53
Feb 17 23:06:04 server named[2081]: command channel listening on 127.0.0.1#953
Feb 17 23:06:04 server named[2081]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Feb 17 23:06:06 server named[2081]: zone 0.168.192.IN-ADDR.ARPA/IN: loaded serial 2003021701
Feb 17 23:06:06 server named[2081]: zone 51flight.com/IN: loaded serial 2003021701
Feb 17 23:06:06 server named[2081]: zone localhost/IN: loaded serial 42
Feb 17 23:06:06 server named[2081]: running
Feb 17 23:06:08 server 2月 17 23:06:08 named: named startup succeeded
Feb 17 23:06:09 server named[2081]: zone 0.168.192.IN-ADDR.ARPA/IN: sending notifies (serial 2003021701)
Feb 17 23:06:06 server named[2082]: zone 51flight.com/IN: sending notifies (serial 2003021701)



没什么错误!

为什么不能解析阿???

郁闷!

我的机器配置了3个IP地址!
下面是返回来的错误:

[root@server named]# nslookup 192.168.0.1
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.
Server: 202.102.134.68
Address: 202.102.134.68#53

** server can't find 1.0.168.192.in-addr.arpa: NXDOMAIN
发表于 2003-2-21 14:56:02 | 显示全部楼层
试试以下配置,如果可以,别忘了回个帖子

51flight.com    zone的配置文件:

$TTL 86400
@ IN SOA www.51flight.com. root.51flight.com. (
2003021701 ; serial
8H ; refresh
2H ; retry
7D ; expire
1D ; default_ttl
)
www IN A 192.168.0.1
niit IN CNAME www.51flight.com.
mail IN CNAME www.51flight.com.
@ IN MX 5 mail.51flight.com.
@ IN NS www.51flight.com.
~

0.168.192.in-addr.arpa   zone的配置文件:

$TTL 86400
@ IN SOA www.51flight.com. root.51flight.com. (
2003021701 ; serial
8H ; refresh
2H ; retry
7D ; expire
1D ; default_ttl
)
1 IN PTR www.51flight.com.
@ IN NS www.51flight.com.
~

0.0.127.in-addr.arpa    zone的配置文件:

$TTL 86400
@ IN SOA www.51flight.com. root.51flight.com. (
2003021701 ; serial
8H ; refresh
2H ; retry
7D ; expire
1D ; default_ttl
)
   NS www.51flight.com.
1 IN PTR localhost.
                      :wink:                    
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 09:56 , Processed in 0.037057 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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