Skip to content

Wildcard subdomain not working #3

@archigo

Description

@archigo

Nice script!
Setting it up, I had one issue. I use a wildcard for all subdomains.
*.domain.com
the regex you use to validate domains does not accept this.

I changed it as such:

### Valid domain name regex (basic validation)
readonly DOMAIN_REGEX='^([a-zA-Z0-9\*]([-a-zA-Z0-9]*[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$'

and it correctly created the A record.

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