LinuxSir.cn,穿越时空的Linuxsir!

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

dns error

[复制链接]
发表于 2005-6-16 23:25:09 | 显示全部楼层 |阅读模式
these is my config file ,please tell me the error's reason ?
/etc/hosts:

order bind,hosts

/etc/resolv.conf
search hosthouse.com
nameserver 192.168.1.53


/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 "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 "hosthouse" IN {
        type master;
        file "hosthouse.zone";
        allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.1.local";
        allow-update { none; };
};
include "/etc/rndc.key";


/var/named/hosthouse.zone

$TTL        86400
$ORIGIN sat.hosthouse.com.
@ 1D IN SOA sat.hosthouse.com. root.sat.hosthouse.com. (
                                        42                ; serial (d. adams)
                                        3H                ; refresh
                                        15M                ; retry
                                        1W                ; expiry
                                        1D )                ; minimum

                1D IN NS    sat.hosthouse.com.
sat                        1D IN A                192.168.1.53
www                        1D IN CNAME     sat.hosthouse.com.
ftp                        1D IN CNAME        sat.hosthouse.com.
mail                        1D IN CNAME        sat.hosthouse.com.


/var/named/192.168.1.local
$TTL        86400
@       IN      SOA sat.hosthouse.com. root.sat.hosthouse.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      sat.hosthouse.com.

53       IN      PTR     sat.hosthouse.com.
53       IN      PTR     www.hosthouse.com.
53       IN      PTR     ftp.hosthouse.com.
53       IN      PTR     mail.hosthouse.com.

which error ?please help me?
发表于 2005-6-17 00:10:49 | 显示全部楼层
日志呢,,,启动后进程起得来吗 ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-17 11:42:15 | 显示全部楼层
能够反向解析,但是不能正向解析
回复 支持 反对

使用道具 举报

发表于 2005-6-17 13:21:51 | 显示全部楼层
贴出日志吧
会有点思路的
回复 支持 反对

使用道具 举报

发表于 2005-6-18 10:02:20 | 显示全部楼层
$TTL 86400
$ORIGIN sat.hosthouse.com.
@  IN SOA sat.hosthouse.com. root.sat.hosthouse.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum


@    IN NS sat.hosthouse.com.
@     IN  A  192.168.1.53
sat.hosthouse.com.  IN A 192.168.1.53
www  IN CNAME sat.hosthouse.com.
ftp  IN CNAME sat.hosthouse.com.
mail  IN CNAME sat.hosthouse.com.

这样应该就可以了,你的配置中有两个明显错误:1,主机没有A纪录,2,set后面应该有".“表示它是一台主机。最后可以用named-checkzone hosthouse.com hosthose.zone检查
回复 支持 反对

使用道具 举报

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

本版积分规则

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