ldns_axfr_complete3
Functions for full zone transfer
Usage
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
ldns_status ldns_axfr_start(ldns_resolver *resolver, const ldns_rdf *domain, ldns_rr_class c);
ldns_rr* ldns_axfr_next(ldns_resolver *resolver);
void ldns_axfr_abort(ldns_resolver *resolver);
bool ldns_axfr_complete(const ldns_resolver *resolver);
ldns_pkt* ldns_axfr_last_pkt(const ldns_resolver *res);
Overview
ldns_axfr_start() Prepares the resolver for an axfr query The query is sent and the answers can be read with ldns_axfr_next .br resolver: the resolver to use .br domain: the domain to axfr .br c: the class to use .br Returns ldns_status the status of the transfer
ldns_axfr_next() Get the next stream of RRs in a AXFR .br resolver: the resolver to use. First ldns_axfr_start() must be called .br Returns ldns_rr the next RR from the AXFR stream After you get this returned RR (not NULL: on error), then check if ldns_axfr_complete() is true to see if the zone transfer has completed.
ldns_axfr_abort() Abort a transfer that is in progress .br resolver: the resolver that is used
ldns_axfr_complete() Returns true if the axfr transfer has completed (i.e. 2 SOA RRs and no errors were encountered .br resolver: the resolver that is used .br Returns bool true if axfr transfer was completed without error
ldns_axfr_last_pkt() Returns a pointer to the last ldns_pkt that was sent by the server in the AXFR transfer usable for instance to get the error code on failure .br res: the resolver that was used in the axfr transfer .br Returns ldns_pkt the last packet sent
Remarks
This manpage was automatically generated from the ldns source code.
Releases
6 releases since Debian 9 (Stretch); the text changed 4 times.