Feature request: domain field that accept either a string or list of string #437

Open
opened 2025-11-20 04:24:04 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @kuolemaaa on GitHub (Sep 17, 2024).

  1. What's the feature?
    Assuming using the same provider with the same keys, in general same parameters: in order to avoid a list of object for each domain, domain should accept a string or a list of string
  2. Extra information?
    maybe differentiate domain field for a single domain and domains (plural) for a list of string?
{
  "settings": [
    {
      "provider": "provider",
      "domain": ["domain.com", "*.domain.com","subdom.domain.com","*.subdom.domain.com","www.domain.com"],
      "apikey": "aaaaaaaaaaaaaaa",
      "secretapikey": "bbbbbbbbbbbbbbbbb",
      "ip_version": "ipv4",
      "ipv6_suffix": "",
    }
  ]
}
Originally created by @kuolemaaa on GitHub (Sep 17, 2024). 1. What's the feature? Assuming using the same provider with the same keys, in general same parameters: in order to avoid a list of object for each domain, `domain` should accept a string or a list of string 2. Extra information? maybe differentiate `domain` field for a single domain and `domains` (plural) for a list of string? <!-- YOU CAN CHAT THERE EVENTUALLY: https://github.com/qdm12/ddns-updater/discussions --> ``` { "settings": [ { "provider": "provider", "domain": ["domain.com", "*.domain.com","subdom.domain.com","*.subdom.domain.com","www.domain.com"], "apikey": "aaaaaaaaaaaaaaa", "secretapikey": "bbbbbbbbbbbbbbbbb", "ip_version": "ipv4", "ipv6_suffix": "", } ] } ```
saavagebueno added the Priority: 💤 Low priorityComplexity: 🟩 Easy to do labels 2025-11-20 04:24:04 -05:00
Author
Owner

@qdm12 commented on GitHub (Nov 21, 2024):

Note you can already specify multiple domains in the domain field (belonging to the same domain name though). i.e. "domain": "domain.com,*.domain.com"

@qdm12 commented on GitHub (Nov 21, 2024): Note you can already specify multiple domains in the domain field (belonging to the same domain name though). i.e. `"domain": "domain.com,*.domain.com"`
Author
Owner

@gorucci commented on GitHub (Jan 23, 2025):

"domain": "domain.com,*.domain.com" did the trick for me. Thank you.

@gorucci commented on GitHub (Jan 23, 2025): `"domain": "domain.com,*.domain.com"` did the trick for me. Thank you.
Author
Owner

@jullit31 commented on GitHub (Feb 16, 2025):

Note you can already specify multiple domains in the domain field (belonging to the same domain name though). i.e. "domain": "domain.com,*.domain.com"

That's great! IMHO this should be mentioned in the docs. Especially as the current wording

"domain" is the domain to update.

strongly implies that only a single domain can be given.

@jullit31 commented on GitHub (Feb 16, 2025): > Note you can already specify multiple domains in the domain field (belonging to the same domain name though). i.e. `"domain": "domain.com,*.domain.com"` That's great! IMHO this should be mentioned in the docs. Especially as the current wording > "domain" is the domain to update. strongly implies that only a single domain can be given.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#437