TimothyYe / godns

A dynamic DNS client tool that supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
https://timothyye.github.io/godns/
Apache License 2.0
1.5k stars 221 forks source link

multi domain provider support #134

Closed johndo100 closed 2 years ago

johndo100 commented 2 years ago

Describe the bug
I have several domains from several domain providers. Please help me. I have a config file like this but it wasn't work.

{
  "provider": "Cloudflare",
  "login_token": "XXX",
  "domains": [{
      "domain_name": "XXX",
      "sub_domains": ["XXX","XXX","XXX","XXX"]
    }
  ],
  "resolver": "8.8.8.8",
  "ip_url": "https://api-ipv4.ip.sb/ip",
  "ip_type": "IPv4",
  "interval": 300,
  "socks5_proxy": ""
}
{
  "provider": "Google",
  "email": "XXX",
  "password": "XXX",
  "domains": [{
      "domain_name": "XXX",
      "sub_domains": ["XXX","XXX"]
    },
  ],
  "resolver": "8.8.8.8",
  "ip_url": "https://api-ipv4.ip.sb/ip",
  "ip_type": "IPv4",
  "interval": 300,
  "socks5_proxy": ""
}
TimothyYe commented 2 years ago

The multi-domain provider is not supported yet. So the temporary solution is to define 2 configuration files for each provider and run GoDNS with 2 independent instances...