Hostname Resolution in Static Cluster Discovery

Hi,

how can I enable hostname resolution for static node discovery? I would like to replace IP addresses by hostnames as in the example configuration below.

<cluster>
<enabled>true</enabled>
<transport>
	<tcp>
		<bind-address>node-1.domain.com</bind-address>
		<bind-port>7800</bind-port>
	</tcp>
</transport>
<discovery>
	<static>
		<node>
			<host>node-1.domain.com</host>
			<port>7800</port>
		</node>
		<node>
			<host>node-2.domain.com</host>
			<port>7800</port>
		</node>
	</static>
</discovery>
</cluster>

Best regards,
Tarik

Hello @tarikhrnjica,

Welcome to the HiveMQ community forum.

In the static cluster discovery configuration, you need to add an IP address instead of hostnames. Hostnames are not supported in the configuration.

Kind regards,
Sheetal

Thanks for the clarification!

Is there a reason for this limitation? Are you planning to support this in the future?

Best regards,
Tarik