Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API error with subdomains of subdomains #156

Open
tradenet opened this issue Oct 31, 2023 · 0 comments
Open

API error with subdomains of subdomains #156

tradenet opened this issue Oct 31, 2023 · 0 comments
Assignees

Comments

@tradenet
Copy link

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:

  1. Go to 'cloudflare.com'
  2. Click on 'DNS --> Records'
  3. Add Record Type A 'subdomain2.subdomain1' and IP address.
  4. 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)"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants