]> git.ipfire.org Git - thirdparty/pdns.git/commit
Add an API-specific lookup method to DNSBackend.
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 20 Mar 2025 13:35:00 +0000 (14:35 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Mon, 14 Apr 2025 14:57:40 +0000 (16:57 +0200)
commitd1f8b2e7f990175560e578f8e70d323c0b266b72
tree35f4ec4c66dc3dc8236027d0e8825be84506a31d
parent732655a31dd81bc36863a974725380644ac2a550
Add an API-specific lookup method to DNSBackend.

This method, APILookup(), behaves similarly to lookup() but allows
disabled records to be returned to the caller. Backends with no support
for disabled records (bind, geoip, ldap, lua2, pipe, tinydns) implement
it as a by-default wrapper over lookup(). Other backends override with
their own processing.

SQL-style backends use distinct queries, api-id-query and
api-any-id-query, so as not to penalize non-API workloads.
13 files changed:
docs/backends/remote.rst
modules/gmysqlbackend/gmysqlbackend.cc
modules/godbcbackend/godbcbackend.cc
modules/gpgsqlbackend/gpgsqlbackend.cc
modules/gsqlite3backend/gsqlite3backend.cc
modules/lmdbbackend/lmdbbackend.cc
modules/lmdbbackend/lmdbbackend.hh
modules/remotebackend/remotebackend.cc
modules/remotebackend/remotebackend.hh
pdns/backends/gsql/gsqlbackend.cc
pdns/backends/gsql/gsqlbackend.hh
pdns/dnsbackend.cc
pdns/dnsbackend.hh