-
Notifications
You must be signed in to change notification settings - Fork 976
Description
- Program: Authoritative
- Issue type: Feature request
Short description
Implement support for storing and retrieving autoprimaries in the LMDB backend.
Usecase
We run a hosting environment and want to operate our PowerDNS servers as Autosecondaries using the LMDB backend. We chose LMDB for its superior performance and resilience against DDoS attacks compared to SQL backends and faster reload speed compared to bind database.
Description
Please add support for the autoprimaries table/functionality to the LMDB backend.
Currently, the LMDB backend lacks the ability to store trusted autoprimary IP adresses and nameservers. Without this implementation, pdns_server cannot lookup if an incoming NOTIFY comes from a trusted source when running on LMDB, making it impossible to use the Autosecondary feature with this backend.
We need the LMDB backend to implement the equivalent of the autoprimaries table found in the generic SQL backends.
From looking at the code this would require the following changes:
- new struct for autoprimary (with ip/nameserver/account)
- add/list/remove operations for autoprimaries
- add function to create secondary domain
- add function to check the notify comes from an autoprimary