LinuxSir.cn,穿越时空的Linuxsir!

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

难倒了很多高手的DNS配置问题

[复制链接]
发表于 2004-11-27 11:06:30 | 显示全部楼层 |阅读模式
难倒了很多高手的DNS配置问题
以下是我在DNS配置
----------------------------------------------------------------------
linuxaid.com.cn

$TTL 86400
@ IN SOA linuxaid.com.cn. root.linuxaid.com.cn. (
2000080701 ; serial
86400 ; refresh
7200 ; retry
3600000 ; expire
86400) ; minimum
@ IN NS root.linuxaid.com.cn.

192.168.0.10 IN PTR www.linuxaid.com.cn.

----------------------------------------------------------------------
namde.conf

options {
directory "/var/named";
};
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 "linuxaid.com.cn"IN {
type master;
file "linuxaid.com.cn";
};
zone "0.168.192.in-addr.arpa"IN {
type master;
file "linuxaid.rev";
};
include "/etc/rndc.key";
----------------------------------------------------------------------
linuxaid.rev
$TTL 86400
@ IN SOA linuxaid.com.cn. root.linuxaid.com.cn. (
2000080701 ; serial
86400 ; refresh
7200 ; retry
3600000 ; expire
86400) ; minimum
@ IN NS root.linuxaid.com.cn.

192.168.0.10 IN PTR www.linuxaid.com.cn.
---------------------------------------------------------------------
named.local
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum

IN NS localhost.
1 IN PTR localhost.
----------------------------------------------------------------------
host.conf
order bind,hosts
---------------------------------------------------------------------
hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.

192.168.0.10 linuxaid.com.cn
---------------------------------------------------------------------
resolv.conf
nameserver 192.168.0.10
domain linuxaid.com.cn.
search com.cn

----------------------------------------------------------------------
以下是我配置完之后的调试结果
[root@linuxaid root]# host www.linuxaid.com.cn
www.linuxaid.com.cn has address 192.168.0.10
[root@linuxaid root]# host 192.168.0.10
Host 10.0.168.192.in-addr.arpa not found: 3(NXDOMAIN)
[root@linuxaid root]# nslookup -sil
> www.linuxaid.com.cn
Server: 192.168.0.10
Address: 192.168.0.10#53

Name: www.linuxaid.com.cn
Address: 192.168.0.10
> 192.168.0.10
Server: 192.168.0.10
Address: 192.168.0.10#53

** server can't find 10.0.168.192.in-addr.arpa: NXDOMAIN
>
有哪一位超级高手可以帮一个我呀.说出我哪里错了
发表于 2004-11-27 14:37:38 | 显示全部楼层
192.168.0.10 IN PTR www.linuxaid.com.cn.
这一行写错了,错在哪儿自己想。
 楼主| 发表于 2004-11-27 14:52:29 | 显示全部楼层
你是不是想说错在192.168.0.10这里呀?应该把它改为10对吧?
发表于 2004-11-29 13:25:34 | 显示全部楼层
应该是改成10
发表于 2004-11-29 15:08:35 | 显示全部楼层
你问的是那的高手?
反向解析有你这样写的!
10.168.192.in-addr.arpa  IN  PTR www.linuxaid.com.cn.
发表于 2004-11-30 22:34:36 | 显示全部楼层
www.linuxaid.com.cn
是楼主做吗?
发表于 2004-11-30 22:43:30 | 显示全部楼层
呵呵。一般的情况,如果是写全的,一般就在后面加上"."
简写就一般不用加"."了。
发表于 2004-11-30 22:46:23 | 显示全部楼层
@ IN NS root.linuxaid.com.cn.
发表于 2004-12-1 07:16:01 | 显示全部楼层
拿别人的来改成自己的,然后对比一下就知道哪里错了,再认定日志,以后看到日志就知道怎么回事了
发表于 2004-12-10 00:39:38 | 显示全部楼层

你好像颠倒了正向和反向搜索数据库文件顺序和内容了

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

本版积分规则

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