ldns_axfr_start - Man Page

functions for full zone transfer

Synopsis

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

ldns_axfr_start();

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);

Description

ldns_axfr_start()

ldns_axfr_next() Get the next stream of RRs in a AXFR
resolver: the resolver to use. First ldns_axfr_start() must be called
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
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
resolver: the resolver that is used
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
res: the resolver that was used in the axfr transfer
Returns ldns_pkt the last packet sent

Author

The ldns team at NLnet Labs.

Reporting Bugs

Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues

See Also

perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.

Remarks

This manpage was automatically generated from the ldns source code.

Referenced By

The man pages ldns_axfr_abort(3), ldns_axfr_complete(3), ldns_axfr_last_pkt(3) and ldns_axfr_next(3) are aliases of ldns_axfr_start(3).

30 May 2006