Hostname configuration/etc/sysconfig/network hostname can not be changed to the form of the domain name
Shell>vim/etc/sysconfig/network
Networking=yes
Networking_ipv6=no
Hostname=mail1.gz.com
Local domain name resolution configuration is often used for testing, of course, in a system of their own internal use is also very common
Shell>vim/etc/hosts
192.168.2.10 mail1.gz.com
192.168.2.20 mail2.gz.com
DNS configuration file/etc/resolv
Shell>vim/etc/hosts
Frequently modified firewall policies
Iptables-f
Iptables-x
Shell>vim/etc/postfix/main.cf
Myhostname = mail.gz.com
MyDomain = gz.com
Inet_interfaces = All
Vim HA.CF
Bcast eth1 #心跳探测
212 node mail1.gz.com #节点位置 using host name (for reasons of hostname and host file)
213 Node Mail2.gz.com
Heartbeat-ldirectord is a bundle of heartbeat and LVS combined
Rear heartbeat detection and forwarding rules are configured on the top
Haresources configuration file
Heartbeat default use of the DR Node virtual interface address and Heartbeat-ldirectord combined configuration.
Mail1.gz.com 192.168.2.100/24/eth0 ldirectord::ldirectord.cf# with Director1 as the main node
In summary, the use of host names and local domain names in the configuration will be used. But the main is the local domain name, the hostname will only use the NetBIOS-based protocol or sharing settings. The host name and DNS domain name configuration are the same for insurance purposes.
Host name configuration and interface configuration domain name configuration hostname configuration