Skip to content

"Add DNS record for domain" fails if hostname contains multiple dashes #2512

@Th3L1nuxGuy

Description

@Th3L1nuxGuy

We use a naming scheme for network devices such as routers and switches where dashes are used to separate the information in the hostname (e.g. the first aggregation router at location XYZ may look like "r1-agg-xyz.domain.com", and the third access switch at location ABC may look like "s3-acc-abc.domain.com"). When I try to add to hostnames to PowerDNS by clicking the "plus" (add) icon to the right of the hostname I've given the IPAM entry, it seems to work, but the record is never created in PowerDNS if the hostname has multiple dashes in it.

To be clear, I'm talking about creating DNS records directly from the subnet view in phpIPAM, not the PowerDNS administration component included with phpIPAM. I get no errors -- just no results, record wise.

If I add any other hostname (one without dashes) to PowerDNS in that way, it works fine. I can also create the PowerDNS record directly in phpIPAM (Administration -> PowerDNS) and that works every time, in all cases.

If I need to test to pin down the behavior, let me know what you'd like me to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions