Skip to content

NAMECHEAP: Fix paginate zone listing to work with more than 20 items#4330

Merged
TomOnTime merged 1 commit into
DNSControl:mainfrom
ajkavanagh:bug/3824/fix-namecheap-paging-issue
May 26, 2026
Merged

NAMECHEAP: Fix paginate zone listing to work with more than 20 items#4330
TomOnTime merged 1 commit into
DNSControl:mainfrom
ajkavanagh:bug/3824/fix-namecheap-paging-issue

Conversation

@ajkavanagh
Copy link
Copy Markdown
Contributor

Provides a fix for the issue #3824. If the user has more than 20 domains at Namecheap then dnscontrol only gets the first 20. This patch performs paging such that all the domains can be retrieved.

  • Fetch all the pages from Namecheap when listing zones so get-zones and zone existence checks do not miss domains beyond the default first page of 20 results.
  • Add regression test covering multi-page domains.getList responses.

Assisted-by: OpenCode gpt-5.4 via OpenCode

Fixes: #3824

Fetch all the pages from Namecheap when listing zones so get-zones and
zone existence checks do not miss domains beyond the default first page
of 20 results.

Add regression test covering multi-page domains.getList responses.

Assisted-by: OpenCode gpt-5.4 via OpenCode
@TomOnTime
Copy link
Copy Markdown
Collaborator

Thanks for fixing that!

@TomOnTime TomOnTime requested a review from willpower232 May 25, 2026 16:16
@TomOnTime TomOnTime merged commit 315073d into DNSControl:main May 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Possible bug introduced by #3775 with Namecheap provider; Zone "xxx" does not exist ...

2 participants