feat(config): read both owner and domain from domain

- retro-compatible change: keep using host/owner if set
- otherwise extract owner and eTLD+1 from domain field
- documentation updated to only use the `domain` field
This commit is contained in:
Quentin McGaw
2024-06-27 13:03:59 +00:00
parent 55d8c0d703
commit 07d7645d78
51 changed files with 175 additions and 169 deletions

View File

@@ -12,7 +12,6 @@
{
"provider": "name.com",
"domain": "domain.com",
"owner": "@",
"username": "username",
"token": "token",
"ttl": 300,
@@ -25,8 +24,7 @@
### Compulsory parameters
- `"domain"`
- `"owner"` is the resource record owner and can be `"@"` for the root domain, `"*"` for the wildcard, or for example `"sub"` for the subdomain `sub.domain.com`
- `"domain"` is the domain to update. It can be `example.com` (root domain), `sub.example.com` (subdomain of `example.com`) or `*.example.com` for the wildcard.
- `"username"` is your account username
- `"token"` which you can obtain from [www.name.com/account/settings/api](https://www.name.com/account/settings/api)