Ticket #4345 (closed defect: fixed)
Gateway dynamic DNS fails for gateway names that contain hyphens (-)
|Reported by:||jjmontes@…||Owned by:||jamor@…|
|Severity:||normal||Keywords:||external-ip, multigateway, hyphen|
Zentyal is providing a dynamic name for each host gateway (i.e. gateway1.host.zentyal.me).
It has been observed that this feature fails for gateways that contain hyphens (i.e. gateway-01). The DynDNS client refuses to update those gateway names because the external script used to obtain the external IP address (external-ip.pl) is failing, showing the following:
gateway-01 is not a valid gateway name Usage:
external-ip.pl gateway-name gateway-name : the gateway to use for the check
Removing the hyphens solves this issue. Please also review whether other characters can be used safely. I'd suggest to either modify Zentyal interface to restrict the character used, or ensuring that they are correctly handled across all facilities that use gateway names.
Version where this has been observed: 2.2.4.