Fully Qualified Domain Name Linux Config. Existing Microsoft Azure services might already have a DNS configuration for a public endpoint. To change your hostname on CentOS 7 run the commands below to edit the hosts file.
Its important to correctly configure your DNS settings to resolve the private endpoint IP address to the fully qualified domain name FQDN of the connection string. The recommended method of setting the FQDN is to make the hostname be an alias for the fully qualified name using host file ie etchosts DNS or NIS. It is also recommended that the static and transient names consists only of 7 bit ASCII lower-case characters no spaces or dots and limits itself to the format allowed for DNS domain name labels even though this is not a strict requirement.
You can check the FQDN using hostname --fqdn or the domain name using dnsdomainname.
Its import to set a correct hostname and FQDN especially for a newly set up system which almost certainly connected to Internet. Also known as an absolute domain name. In such setup many tools monitoring requires servers to be identified by FQDN only. Existing Microsoft Azure services might already have a DNS configuration for a public endpoint.