LinuxSir.cn,穿越时空的Linuxsir!

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

dns

[复制链接]
发表于 2004-5-24 13:07:13 | 显示全部楼层 |阅读模式
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 "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

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

};

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

};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

include "/etc/rndc.key";

cat /var/named/lux.net.hosts

$TTL 1D
@   IN   SOA      yj.lux.net.  root.yj.lux.net.(
                           
                          2004052401
                            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.(
                               2004052411
                               3H
                               15M
                               1W
                               1D)
     

            IN NS    yj.lux.net.

69          IN PTR   yj.lux.net.

cat /etc/resolv.conf

domain lux.net
nameserver 128.111.20.69

host  yj.lux.net
Host yj.lux.net not found: 3(NXDOMAIN)

这是什么问题,请大家帮我解决一下
发表于 2004-5-24 13:29:01 | 显示全部楼层
写成这样新手根本就不可能看懂
发表于 2004-5-24 13:34:33 | 显示全部楼层
我做DNS的记录文件都写在/var/named下,
zone "lux.net" IN {
type master;
file "lux.net.zone";
};
在/var/named下写lux.net.zone文件:
@    IN    SOA    lux.net.    root.yj.lux.net.(
2
28800
7200
86400
604800 )

@ IN NS lux.net.

@ IN A 你的IP

www IN A 你的IP
 楼主| 发表于 2004-5-24 14:43:27 | 显示全部楼层
问题已经解决,谢谢大家支持
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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