Overview
This branch aims to modernize the DNS management functionality in DHANE by replacing the current pdnsutil command-line tool usage with direct PowerDNS HTTP API calls.
Current Status
🚧 In Development - Initial planning and development phase
Goals
- Replace all
pdnsutil command-line calls with PowerDNS HTTP API requests
- Improve error handling and response validation
- Add support for API authentication (API keys)
- Maintain backward compatibility with existing configuration
- Enhance performance by reducing subprocess overhead
Changes Planned
DNS Functions to Migrate
The following functions in dehydrated_tlsa will be updated:
create_dns_rr() - Replace pdnsutil add-record with API POST requests
delete_dns_rr_set() - Replace pdnsutil delete-rrset with API DELETE requests
- Zone management operations:
- Replace
pdnsutil rectify-zone with API rectify endpoint
- Replace
pdnsutil increase-serial with API serial increment
- Replace
pdnsutil check-zone with API validation
New Configuration Options
Additional settings will be added to support API connectivity:
- PowerDNS API endpoint URL
- API authentication key
- HTTP timeout settings
- SSL/TLS verification options
Benefits
- Better Integration: Direct API calls provide more reliable communication
- Enhanced Error Handling: Structured JSON responses vs. parsing command output
- Improved Performance: Eliminate subprocess overhead from
pdnsutil calls
- Modern Architecture: Move away from command-line dependency to HTTP API
- Better Monitoring: Structured logging and response validation
Compatibility
The branch will maintain full compatibility with existing tlsa.txt configuration files and dehydrated hook integration.
Branch: powerdns-api-migration
Overview
This branch aims to modernize the DNS management functionality in DHANE by replacing the current
pdnsutilcommand-line tool usage with direct PowerDNS HTTP API calls.Current Status
🚧 In Development - Initial planning and development phase
Goals
pdnsutilcommand-line calls with PowerDNS HTTP API requestsChanges Planned
DNS Functions to Migrate
The following functions in
dehydrated_tlsawill be updated:create_dns_rr()- Replacepdnsutil add-recordwith API POST requestsdelete_dns_rr_set()- Replacepdnsutil delete-rrsetwith API DELETE requestspdnsutil rectify-zonewith API rectify endpointpdnsutil increase-serialwith API serial incrementpdnsutil check-zonewith API validationNew Configuration Options
Additional settings will be added to support API connectivity:
Benefits
pdnsutilcallsCompatibility
The branch will maintain full compatibility with existing
tlsa.txtconfiguration files and dehydrated hook integration.