Skip to content

Conversation

@amworden
Copy link

The original code fetched the zones list with GET "zones", but the API returns at most 100 zones. Accounts with more zones failed to resolve because the target zone could be beyond that limit.

Fix: First tries direct zone access (GET "zones/${zone_name}"), bypassing the 100-zone cap and falling back to the list when needed.

Result: Supports accounts with more than 100 zones.

Neilpang and others added 2 commits October 24, 2025 21:15
- Add direct zone access before falling back to zones list
- This makes zone detection more reliable and faster by attempting
  to access the zone directly first, which is more efficient than
  listing all zones and searching through them
@github-actions
Copy link

Welcome
READ ME !!!!!
Read me !!!!!!
First thing: don't send PR to the master branch, please send to the dev branch instead.
Please read the DNS API Dev Guide.
You MUST pass the DNS-API-Test.
Then reply on this message, otherwise, your code will not be reviewed or merged.
Please also make sure to add/update the usage here: https://github.com/acmesh-official/acme.sh/wiki/dnsapi2
注意: 必须通过了 DNS-API-Test 才会被 review. 无论是修改, 还是新加的 dns api, 都必须确保通过这个测试.

@amworden
Copy link
Author

Welcome READ ME !!!!! Read me !!!!!! First thing: don't send PR to the master branch, please send to the dev branch instead. Please read the DNS API Dev Guide. You MUST pass the DNS-API-Test. Then reply on this message, otherwise, your code will not be reviewed or merged. Please also make sure to add/update the usage here: https://github.com/acmesh-official/acme.sh/wiki/dnsapi2 注意: 必须通过了 DNS-API-Test 才会被 review. 无论是修改, 还是新加的 dns api, 都必须确保通过这个测试.

should be good

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

Successfully merging this pull request may close these issues.

3 participants