2012-5-25学习日志-DNS配置

学习了一下DNS的配置(http://tech.ddvip.com/2008-11/122786350595966.html)
1、安装BIND工具
     service named start
     主配置文件 /etc/named.conf
     区文件目录 /var/named/chroot/var/named/

2、我的named.conf

zone "caoshiming.com" IN {
type master;
file "caoshiming.com.zone";
};
zone "220.168.192.in-addr.arpa" IN {
type master;
file "com.caoshiming.zone";
};

3、我的正向数据库文件caoshiming.com.zone

$TTL 1D
@ IN SOA www.caoshiming.com. mail.caoshiming.com. (
2009042302 ; serial
3H ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS www.caoshiming.com.
@ IN MX 10 mail.caoshiming.com.

www IN A 192.168.220.138
mail IN A 192.168.220.138

3、我的反向数据库文件com.caoshiming.zone

$TTL 1D
@ IN SOA www.caoshiming.com. mail.caoshiming.com. (
20090403215 ; serial
3H ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS www.caoshiming.com.
@ IN MX 10 mail.caoshiming.com.
138 IN PTR www.caoshiming.com.

4、注意事项

域名后面要加.
service named start 启动,成功了,但是没法测试,也不知道最终成功了没有

posted @ 2012-05-25 23:27  mingziday  阅读(168)  评论(0编辑  收藏  举报