LinuxSir.cn,穿越时空的Linuxsir!

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

我的DNS的问题!

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

本版积分规则

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