红联Linux门户
Linux帮助

自己简单的的DNS设置,记下来

发布时间:2006-10-04 00:52:38来源:红联作者:剑soho
这个配置,公司的虚拟机上是可以的,可公司的主机上就不行,一模一样的设置就是不行,可回家在自己的主机上测试,又是一样的配置,又是可以的,真是搞不懂了。我靠……
named.conf
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};
zone "0.0.127.in-addr.qrpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "myhome.cc" IN {
type master;
file "name2ip.conf";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "ip2name.conf";
allow-update { none; };
};

name2ip.conf
$TTL 86400
@ IN SOA my.myhome.cc. dayerong.hotmail.com. (
1053891162
3H
15M
1W
1D
)
@ IN NS my.myhome.cc.
@ IN MX 5 mail.myhome.cc.
my IN A 192.168.1.11
www IN CNAME my.myhome.cc.
ftp IN A 192.168.1.11
mail IN A 192.168.1.11


ip2name.conf

$TTL 86400
@ IN SOA my.myhome.cc. dayerong.hotmail.com.(
20031001
7200
3600
43200
86400 )
@ IN NS my.myhome.cc.
11 IN PTR my.myhome.cc.
11 IN PTR ftp.myhome.cc.
11 IN PTR mail.myhome.cc.


刚开始在options里设置了forwarders不行。不用设置。
文章评论

共有 2 条评论

  1. juanshuchun 于 2006-10-27 21:24:36发表:

    sorry

  2. danielsk 于 2006-10-25 10:18:21发表:

    budong