Host name configuration and interface configuration domain name configuration hostname configuration

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.