[root@rhel5 named]# cd /var/www/html/
[root@rhel5 html]# mkdir yum 88181 linuxidc
[root@rhel5 conf.d]# mkdir /usr/html#添加标志性文件

[root@rhel5 html]# echo "this is a yum" >yum/index.html
[root@rhel5 html]# echo "this is a 88181" >88181/index.html
[root@rhel5 html]# echo "this is a linuxidc" >linuxidc/index.html
[root@rhel5 conf.d]# echo "this is a 88181 news" >/usr/html/index.html#添加news目录用户认知

[root@rhel5 conf.d]# htpasswd -c -b  /etc/httpd/.htpasswd news 123 Adding password for user /etc/httpd/.htpasswd#挂载光盘镜像到www.88181.com的家目录

[root@rhel5 named]# vim yum.com.zone
[root@rhel5 named]# cat yum.com.zone
$TTL 86400
@      IN      SOA    www.yum.com. root  (
2013080803 ; Serial
28800      ; Refresh
14400      ; Retry
3600000    ; Expire
86400 )    ; Minimum
@      IN      NS      www.yum.com.
@      IN      A      10.0.1.8
www    IN      A      10.0.1.8#88181.com配置文件

[root@rhel5 named]# service named restart
停止 named:                                              [确定]
启动 named:                                              [确定]#重启httpd服务

[root@rhel5 html]# service httpd restart
停止 httpd:                                              [失败]
启动 httpd:                                              [确定]

推荐阅读: