LinuxSir.cn,穿越时空的Linuxsir!

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

DNS问题

[复制链接]
发表于 2004-5-17 20:27:26 | 显示全部楼层 |阅读模式
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 "."  {
        type hint;
        file "named.ca";
};

zone "lux.net"  {
        type master;
        file "lux.net.hosts";
       
};

zone "20.111.128.in-addr.arpa"  {
        type master;
        file "128.111.20.rev";

};

zone "0.0.127.in-addr.arpa"{
         type master;
         file "named.local";
};
include "/etc/rndc.key";

cat /var/named/lux.net.hosts
$TTL 1D

@                 IN       SOA  yj.lux.net. root.yj.lux.net.
(
                           1053891162
                           3H
                           15M
                           1W
                           1D)

                 IN    NS      yj.lux.net.
                 IN    MX        5       yj.lux.net.

yj             IN     A               128.111.20.69

www            IN CNAME          yj.lux.net.


cat /var/named/128.111.20.rev
$TTL 1D

@                 IN     SOA     yj.lux.net. root.yj.lux.net.
(
                             1053892104
                             3H
                             15M
                             1W
                             1D)


                    IN    NS          yj.lux.net.

69               IN   PTR           yj.lux.net.

cat /etc/resolv.conf
nameserver 128.111.20.69


这个配置哪里有问题,解析不了,请高手赐教
发表于 2004-5-18 01:08:56 | 显示全部楼层
启动 named 时查看一下/var/log/message

如果没有猜错的话,应该会出现类似如下信息:
dns_rdata_fromtext: lux.net.rev:2: near eol: unexpected end of input

@ IN SOA yj.lux.net. root.yj.lux.net.
(                               <<-- 注意这里, 不应单独成一行,应与上面的一行在一起

即:
@ IN SOA yj.lux.net. root.yj.lux.net. (   
才对
 楼主| 发表于 2004-5-18 08:44:28 | 显示全部楼层
明白,我试试,先谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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