feat(dnssec): Add MX record DNSSEC support for proper serialization and authentication of mail exchange records

This commit is contained in:
2025-06-01 20:53:22 +00:00
parent afdd6a6074
commit 9e5fae055f
4 changed files with 21 additions and 1 deletions

View File

@@ -110,6 +110,13 @@ The test suite demonstrates:
2. **SOA Record Serialization**: Implemented proper SOA record encoding for DNSSEC compatibility
3. **Configurable Primary Nameserver**: Added `primaryNameserver` option to customize SOA mname field
## Recent Improvements (v7.4.8)
1. **MX Record DNSSEC Support**: Implemented MX record serialization for DNSSEC signing
- MX records consist of a 16-bit preference value followed by the exchange domain name
- Properly serializes both components for DNSSEC signature generation
- Enables mail exchange records to be authenticated with DNSSEC
## Known Limitations
1. **Handler Deduplication**: If the same handler is registered multiple times, it will contribute duplicate records (this may be desired behavior for some use cases)