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.
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:
and it correctly created the A record.