DNS resolvable host name not accepted in cluster configuration

Behaviour:

Cluster configuration does not accept DNS resolvable names, but enforces IPv4 or IPv6 addresses. This prevents startup when config validation is enabled

 

WARN - Cannot load the configuration from '/opt/hivemq/conf/config.xml' because of the following errors: - Cluster discovery static node address 'example.com' is neither an IPv4 nor an IPv6 String literal. - Cluster discovery static node address 'example.com' is neither an IPv4 nor an IPv6 String literal. - Cluster discovery static nodes do not contain your own port and address. 2023-04-11 20:39:16,022 ERROR - Preventing HiveMQ startup because the configuration could not be loaded.

 

Workarounds:

Affected versions:

  • HiveMQ 4.10.0

  • HiveMQ 4.11.0

  • HiveMQ 4.12.0

  • HiveMQ 4.13.0