lfhohmann / ha-duckdns_ipv4_ipv6

A Home Assistant custom component to update both IPV4 and IPV6 addresses on DuckDNS
MIT License
21 stars 3 forks source link

Add more than one domain? #2

Open skrause-data opened 2 years ago

skrause-data commented 2 years ago

Hi,

I am using 3 different sub domains for my DuckDNS account. With the standard Addon it is easiely possible to add several sub domains in the configuration.yaml. Does adding multiple sub domains work in your addon, too?

RuessAar commented 7 months ago

Hey,

I second this. It would be best if the domain Part, would be able to take a list as input.

RuessAar commented 7 months ago

After revisiting the duckdns documentation and trying a few things I have found that you can just add multiple domains separated by commas. Important is to leave no spaces between the domains and comma.

Example:

duckdns_ipv4_ipv6:
  access_token: YOUR_ACCESS_TOKEN
  domain: YOUR_SUBDOMAIN_1,YOUR_SUBDOMAIN_2
  ipv4_mode: duckdns
  ipv6_mode: nameserver