Describe the bugcloudflare-ddns
Is unable to add subdomains of subdomains eg. subdomain2.subdomain1.tld
If one is added manually to cloudflare.com then an api error occurs. It appears that cloudflare-ddns keeps trying to add existing subdomains from config.json causing a loop.
To Reproduce
Steps to reproduce the behavior:
Go to 'cloudflare.com'
Click on 'DNS --> Records'
Add Record Type A 'subdomain2.subdomain1' and IP address.
See error in cloudflarre-ddns logs
Log behavior 2023-10-30T19:31:45.942399795Z | result=null success=false errors=[{"code":81057,"message":"Record already exists."}] messages=[]An exception occurred while sending 'POST' request to 'zones/aa9ca73371176cf09ba5a6ecfeXxXxXX/dns_records': HTTPSConnectionPool(host='api.cloudflare.com', port=443): Max retries exceeded with url: /client/v4/zones/aa9ca73371176cf09ba5a6ecfee16d71/dns_records (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f2d21af2000>: Failed to resolve 'api.cloudflare.com' ([Errno -3] Try again)"))
Describe the bug cloudflare-ddns Is unable to add subdomains of subdomains eg. subdomain2.subdomain1.tld If one is added manually to cloudflare.com then an api error occurs. It appears that cloudflare-ddns keeps trying to add existing subdomains from config.json causing a loop.
To Reproduce Steps to reproduce the behavior:
Log behavior
2023-10-30T19:31:45.942399795Z | result=null success=false errors=[{"code":81057,"message":"Record already exists."}] messages=[]
An exception occurred while sending 'POST' request to 'zones/aa9ca73371176cf09ba5a6ecfeXxXxXX/dns_records': HTTPSConnectionPool(host='api.cloudflare.com', port=443): Max retries exceeded with url: /client/v4/zones/aa9ca73371176cf09ba5a6ecfee16d71/dns_records (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f2d21af2000>: Failed to resolve 'api.cloudflare.com' ([Errno -3] Try again)"))