do{goodgoodstudy();daydayup();}while(!died)
分类: LINUX
2011-05-09 20:31:04
需要结合上篇的FTP服务器的创建
需要关闭防火墙
当然www服务器得开启,一般系统都带有
(1)下载bind-9.5.0-16.a6.fc8.i386.rpm bind-chroot-9.5.0-16.a6.fc8.i386.rpm
bind-libs-9.5.0-16.a6.fc8.i386.rpm bind-utils-9.5.0-16.a6.fc8.i386.rpm
(2)安装完成后,使用rpm -q bind查看是否安装成功。
(3)修改本机域名服务器IP地址(/etc/resolv.conf):
domain aoyang.com
nameserver 192.168.1.6
(4)设置主区域(/etc/named.conf)
zone “aoyang.com" IN {
type master;
file “aoyang.com.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.arpa";
allow-update { none; };
};
(5)建立正向域名转换数据文件(/var/named/aoyang.com.zone)
$TTL 1D
aoyang.com. SOA aoyang.com. root.aoyang.com. (
2007110100 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
aoyang.com. IN NS dns.aoyang.com.
dns.aoyang.com. IN A 192.168.1.6
IN A 192.168.1.6
ftp.aoyang.com. IN A 192.168.1.6
fedora IN A 192.168.1.6
(6)建立反向域名转换数据文件( /var/named/ 1.168.192.arpa )
$TTL 1D
1.168.192.in-addr.arpa. IN SOA aoyang.com. root.aoyang.com. (
2007110100
1D
1H
1W
3H )
1.168.192.in-addr.arpa. IN NS dns.aoyang.com.
6 IN PTR dns.aoyang.com.
6 IN PTR
6 IN PTR .
(7)启动DNS服务器并测试回环,/etc/rc.d/init.d/named start
Nslookup进行回环测试