ypbind-1.19-8.el5
bind-9.3.4-6.P1.el5
bind-utils-9.3.4-6.P1.el5
bind-chroot-9.3.4-6.P1.el5
bind-libs-9.3.4-6.P1.el5
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.tst";
notify yes;
};
type hint;
file "named.ca";
};
type master;
file "localhost.zone";
};
type master;
file "localhost.rev";
};
zone "aiyanet.com" {
type master;
file "aiyanet.com.zone";
};
type master;
file "nbaqq.com.zone";
};
type master;
file "aiyanet.com.rev";
};
[root@aiyanet /]# cd /var/named/chroot/var/named/
编辑:aiyanet.com.rev localhost.zone nbaqq.com.zone
aiyanet.com.zone localhost.rev named.ca
httpd-2.2.3-11.el5_1.3
httpd-manual-2.2.3-11.el5_1.3
system-config-httpd-1.3.3.3-1.el5
ServerAdmin root@localhost (改成自己常用邮箱)
ServerName 192.168.1.123 (自己主机IP)
<VirtualHost 192.168.1.123>
ServerAdmin [email]fuquanshi@aiyonet.com[/email]
DocumentRoot /var/www/html
ServerName aiyanet.com
ErrorLog logs/aiyanet.com-error_log
CustomLog logs/aiyanet.com-access_log common
</VirtualHost>
在分别建立虚拟网址:如上面所需的[url]www.aiyanet.com[/url]、ftp.aiyanet.com、mail.aiyanet.com、 nbaqq.com、[url]www.nbaqq.com[/url] 的网址;
[root@aiyanet named]# vi /etc/resolv.conf
nameserver 192.168.1.123 (加上这样一条)