Lines Matching defs:db
20 #include <dns/db.h>
142 check_hints(dns_db_t *db) {
158 (void)dns_db_find(db, dns_rootname, NULL, dns_rdatatype_ns, 0,
160 result = dns_db_createiterator(db, 0, &dbiter);
168 result = dns_db_allrdatasets(db, node, NULL, now, &rdsiter);
175 dns_db_detachnode(db, &node);
187 dns_db_detachnode(db, &node);
201 dns_db_t *db = NULL;
206 rdclass, 0, NULL, &db);
215 result = dns_db_beginload(db, &callbacks);
222 result = dns_master_loadfile(filename, &db->origin,
223 &db->origin, db->rdclass,
225 &callbacks, db->mctx);
230 result = dns_master_loadbuffer(&source, &db->origin,
231 &db->origin, db->rdclass,
233 &callbacks, db->mctx);
236 eresult = dns_db_endload(db, &callbacks);
241 if (check_hints(db) != ISC_R_SUCCESS)
246 *target = db;
255 if (db != NULL)
256 dns_db_detach(&db);
321 check_address_records(dns_view_t *view, dns_db_t *hints, dns_db_t *db,
337 rresult = dns_db_find(db, name, NULL, dns_rdatatype_a,
379 rresult = dns_db_find(db, name, NULL, dns_rdatatype_aaaa,
421 dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db) {
432 REQUIRE(db != NULL);
459 result = dns_db_find(db, dns_rootname, NULL, dns_rdatatype_ns, 0,
489 check_address_records(view, hints, db, &ns.name, now);