From: Peter van Dijk Date: Thu, 18 Jul 2019 15:35:35 +0000 (+0200) Subject: add notified_serial range test to pdnsutil test-schema X-Git-Tag: dnsdist-1.4.0-rc1~23^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afdeeff28bfdcbed5ce6fb19190e94ba4b10ccbd;p=pdns add notified_serial range test to pdnsutil test-schema --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 8eb3f016d..c421219b7 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1868,6 +1868,20 @@ void testSchema(DNSSECKeeper& dk, const DNSName& zone) return; } cout<<"[+] ordername sorting is correct for names starting with _"<setNotified(di.id, 500); + db->getDomainInfo(zone, di); + if(di.notified_serial != 500) { + cout<<"[-] Set serial 500, got back "<setNotified(di.id, 2147484148); + db->getDomainInfo(zone, di); + if(di.notified_serial != 2147484148) { + cout<<"[-] Set serial 2147484148, got back "<