From 893cf093959b552a88b348d9d61df08bf756c866 Mon Sep 17 00:00:00 2001 From: Romuald Brunet Date: Thu, 18 Apr 2024 10:52:20 +0200 Subject: [PATCH] Add clarification on backend writer guide For `getBeforeAndAfterNamesAbsolute()`, in case of proof of non existence for a type (and not the name), the requested name should be returned, **not** the name before it. --- docs/appendices/backend-writers-guide.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/appendices/backend-writers-guide.rst b/docs/appendices/backend-writers-guide.rst index 6802169fad..bd1aa293f5 100644 --- a/docs/appendices/backend-writers-guide.rst +++ b/docs/appendices/backend-writers-guide.rst @@ -905,6 +905,7 @@ In order for a backend to support DNSSEC, quite a few number of additional opera .. cpp:function:: virtual bool getBeforeAndAfterNamesAbsolute(uint32_t id, const DNSName& qname, DNSName& unhashed, DNSName& before, DNSName& after) Asks the names before and after qname for NSEC and NSEC3. The qname will be hashed when using NSEC3. Care must be taken to handle wrap-around when qname is the first or last in the ordered list of zone names. + Please note that in case the requested name is present in the zone, it should be returned as the "before" name. .. cpp:function:: virtual bool updateDNSSECOrderNameAndAuth(uint32_t domain_id, const DNSName& qname, const DNSName& ordername, bool auth, const uint16_t qtype=QType::ANY) -- 2.47.2