免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1245 | 回复: 3
打印 上一主题 下一主题

[DNS] 求助DNS问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-26 15:57 |只看该作者 |倒序浏览
小弟我近来在学习配置DNS,自己配了一个,感觉配置完全正确,用来解析公网的地址,也没有问题,只是

自己做的两个配置文件,做host测却无法通过,配置如下:

[root@learnlinux root]# cat /etc/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 "learnlinux.net" {
        type master;
        file "learnlinux.net.hosts";
        allow-update { none; };
};

zone "1.168.192.in-addr.arpa" {
        type master;
        file "192.168.1.rev";
        allow-update { none; };
};

include "/etc/rndc.key";
[root@learnlinux root]# cat /var/named/
192.168.1.rev         learnlinux.net.hosts  localhost.zone        named.ca              named.local
[root@learnlinux root]# cat /var/named/learnlinux.net.hosts
$TTL    86400
$ORIGIN localhost.
@                       1D IN SOA       wwj.learnlinux.net.  root.wwj.learnlinux.net. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        IN NS    wwj.learnlinux.net.

                        IN MX 4  wwj.learnlinux.net.

                wwj     IN A     192.168.1.213
`
                www     IN CNAME wwj.learnlinux.net.
[root@learnlinux root]# cat /var/named/192.168.1.rev
$TTL    86400
@       IN      SOA     wwj.learnlinux.net.  root.wwj.learnlinux.net.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      wwj.learnlinux.net.

213       IN      PTR     wwj.learnlinux.net.
[root@learnlinux root]# services named restart
-bash: services: command not found
[root@learnlinux root]# service named restart
Í£Ö¹ named£º
named 己经运行 [root@learnlinux root]# host wwj.learnlinux.net
wwj.learnlinux.net has address 69.25.142.57
[root@learnlinux root]# host 192.168.1.213
Host 213.1.168.192.in-addr.arpa not found: 3(NXDOMAIN)
[root@learnlinux root]#

做正解析,弄出了个69.25.142.57,我配的是192.168.1.213,
反解析就更不行了,居然解析不出来,看了半天,也不知道问题在哪,望各位高人指点一下。

论坛徽章:
0
2 [报告]
发表于 2006-06-26 16:07 |只看该作者
还有/etc/resolv.conf你设置好了吗

论坛徽章:
0
3 [报告]
发表于 2006-06-26 16:08 |只看该作者
我设了啊。

论坛徽章:
0
4 [报告]
发表于 2006-06-26 16:23 |只看该作者
附日志信息如下,望高手不令赐教:

[root@learnlinux root]# tail -f /var/log/messages
Jun 11 20:16:39 learnlinux named[1948]: command channel listening on 127.0.0.1#953
Jun 11 20:16:39 learnlinux named[1948]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Jun 11 20:16:39 learnlinux named[1948]: zone localhost/IN: loaded serial 42
Jun 11 20:16:39 learnlinux named[1948]: running
Jun 11 20:29:20 learnlinux sshd(pam_unix)[1973]: session opened for user root by (uid=0)
Jun 11 20:52:03 learnlinux sshd(pam_unix)[1973]: session closed for user root
Jun 12 00:54:39 learnlinux named[1948]: app.c:561: unexpected error:
Jun 12 00:54:39 learnlinux named[1948]: isc_app_shutdown() pthread_kill: No such process
Jun 12 01:09:37 learnlinux sshd(pam_unix)[2126]: session opened for user root by (uid=0)
Jun 12 01:30:03 learnlinux sshd(pam_unix)[2226]: session opened for user root by (uid=0)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP