Skip to content

dns_hostingde.sh: Invalid URL construction due to hardcoded API path #6896

@awmst4-max

Description

@awmst4-max

Description:
There is a bug in the dns_hostingde.sh script regarding the HOSTINGDE_ENDPOINT variable. The script hardcodes the suffix /api/dns/v1/json/ when calling the API, which leads to a doubled path if the user provides the official endpoint URL (as documented by hosting.de).

[Sun Apr 5 17:19:12 CEST 2026] _post_url='https://secure.hosting.de/api/dns/v1/json/api/dns/v1/json/zoneConfigsFind' [Sun Apr 5 17:19:12 CEST 2026] Result of zoneConfigsFind: 'Request url is invalid'

The Problem:
The script constructs the URL by appending the path regardless of whether it's already present in the variable.

Proposed Fix:
The script should check if the endpoint already contains the API path or the documentation should explicitly state to only provide the base domain as the endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions