Skip to content

Add WHM findDnsZone for a single DNS cluster lookup - #4

Merged
eugenefvdm merged 1 commit into
eugenefvdm:mainfrom
Stormvdm:find-dns-zone
Oct 6, 2026
Merged

eugenefvdm merged 1 commit into
eugenefvdm:mainfrom
Stormvdm:find-dns-zone

Conversation

@Stormvdm

@Stormvdm Stormvdm commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Whm::findDnsZone() which calls WHM API 1 parse_dns_zone once against the configured server.
  • That is the supported replacement for deprecated dumpzone. On a synchronized DNS cluster the DNS role already holds every member's zones, so callers do not need to query each web server.
  • Returns the zone name and parsed payload, or null when the zone is absent. The token needs the list-zones privilege.

Test plan

  • vendor/bin/pest --compact tests/Feature/WhmTest.php
  • vendor/bin/phpstan analyse src/Whm.php src/Contracts/WhmInterface.php
  • Call findDnsZone() against a DNS cluster member for a zone that exists only on another web server and confirm it is found

Made with Cursor

parse_dns_zone replaces deprecated dumpzone and avoids querying every web server.

Co-authored-by: Cursor <cursoragent@cursor.com>
@eugenefvdm
eugenefvdm merged commit b1ca184 into eugenefvdm:main Oct 6, 2026
1 check passed
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.

2 participants