3、配置192.168.80.139,http服务器:
这里的139配置和138的http配置是一样的,不同的是在138上面初始化的Discuz论坛,这里直接访问即可,只需配置DNS解析:
按配置138http的步骤配置,http已经OK了:
配置DNS
# yum -y remove bind-utils bind-libs # yum -y install bind97 bind97-utils bind97-libs # vim /etc/named.conf …… options { listen-on port 53 { any; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { any; }; recursion yes; }; …… # vim /etc/named.rfc1912.zones zone "linuxidc.com" IN { type master; file "linuxidc.com.zone"; }; zone "168.192.in-addr.arpa" IN { type master; file "192.168.zone"; }; # vim /var/named/linuxidc.com.zone $TTL 600 $ORIGIN linuxidc.com. @ IN SOA ns.linuxidc.com. admin.linuxidc.com. ( 2012071601 1H 10M 7D 3H ) IN NS ns ns IN A 192.168.80.139 ns IN A 192.168.80.138 www IN A 192.168.80.139 www IN A 192.168.80.138 # vim /var/named/192.168.zone $TTL 600 @ IN SOA ns.linuxidc.com. admin.linuxidc.com. ( 2012071601 1H 10M 7D 3H ) IN NS ns.linuxidc.com. 80.139 IN PTR ns.linuxidc.com. 80.138 IN PTR ns.linuxidc.com. 80.139 IN PTR 80.138 IN PTR # cd /var/named/ # chown .named linuxidc.com.zone 192.168.zone # chmod 644 linuxidc.com.zone 192.168.zone # service named restart # vim /etc/resolv.conf nameserver 192.168.80.139通过ping 查看是否有dns轮询: