You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix zone detection for subdomain DNS record management (#11)
Resolves a bug where DirectAdmin provider attempted to create DNS
records in non-existent zones for subdomain requests. For example, when
managing host.subdomain.domain.com, the provider incorrectly tried to
use zone subdomain.domain.com instead of the actual managed zone domain.com.
Key changes:
- Add findManageableZone() with parent zone traversal algorithm
- Add getDomainList() to retrieve available DirectAdmin domains
- Add adjustRecordForZone() for proper subdomain record name handling
- Update all CRUD operations to use detected manageable zones
- Add comprehensive test coverage for zone detection scenarios
- Add LIBDNS_DA_NON_ROOT_TEST_ZONE environment variable for testing
This fix enables proper ACME challenge handling for subdomains in Caddy
server deployments, resolving "Domain does not belong to you" errors.
Update to use libdns 1.x (#8)
Migrate to libdns v1.1.0
- Update libdns dependency to v1.1.0
- Replace libdns.Record with specific record types
- Implement new SetRecords atomicity semantics
- Update tests for new API