Ticket #4345 (closed defect: fixed)
Gateway dynamic DNS fails for gateway names that contain hyphens (-)
| Reported by: | jjmontes@… | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | 3.0 | Component: | network |
| Severity: | normal | Keywords: | external-ip, multigateway, hyphen |
| Cc: |
Description
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.
Attachments
Change History
comment:2 Changed 12 months ago by jamor@…
- Status changed from new to closed
- Resolution set to fixed
- Milestone set to 3.0
We have checked and '-' does not raise problem, but other combiantions of character cn break havoc in dynamic dns. This is fixed in [4ef47bc]
No need to hotfix, existent server should set its gateway names to this character set: lowercase letters a-z. '-' and 0-9 digits.
Internal: for more info, check support issue 1156.