Project

General

Profile

hostname requirements

robert davis
Added about 3 years ago

When clustering, does Tigase require a Linux system hostname to be set to the FQDN?

There are responses in the forum stating the canonical name must be unique and the hostname must be resolvable in DNS.

My interpretation of this is Tigase will perform a getCanonicalbyHostName() or getHostbyName() to retrieve the FQDN. Thus, the requirement would be the system hostname must resolve in DNS and of course be unique. Not that the hostname=FQDN.

Other documentation states, "Please note the proper DNS configuration is critical for the cluster to work correctly. Make sure the 'hostname' command returns a full DNS name on each cluster node." This implies something different as hostname w/o options would only use gethostname(). Did they mean to say hostname -f or hostname --fqdn?

It would be very unusual for any application to require a system hostname be set to its FQDN.

Can someone please confirm that the following command output would be ok for a cluster node:

command hostname returns "node"

command "hostname -f" returns "node.domain.com"

Furthermore, if every node FQDN is defined in each node's /etc/hosts and /etc/nsswitch.conf is set to hosts: files then you wouldn't need the box registered in DNS, correct?


Replies (1)

Added by Wojciech Kapcia TigaseTeam about 3 years ago

robert davis wrote:

Thus, the requirement would be the system hostname must resolve in DNS and of course be unique. Not that the hostname=FQDN.

Furthermore, if every node FQDN is defined in each node's /etc/hosts and /etc/nsswitch.conf is set to hosts: files then you wouldn't need the box registered in DNS, correct?

Left relevant parts - yes, it has to be unique and then given hostname has to resolve correctly to the cluster nodes so if you set the hostname of the machine and then configure resolving on other machines (using /etc/hosts) to correct IPs then it will work just fine.

Please keep in mind and check in Tigase logs (@logs/tigase-console.log@) the hostname that Tigase picked up.

    (1-1/1)