1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_axfr_start, ldns_axfr_next, ldns_axfr_abort, ldns_axfr_complete,
7 ldns_axfr_last_pkt - functions for full zone transfer
8
9
11 #include <stdint.h>
12 #include <stdbool.h>
13
14 #include <ldns/ldns.h>
15
16 ldns_status ldns_axfr_start(ldns_resolver *resolver, const ldns_rdf
17 *domain, ldns_rr_class c);
18
19 ldns_rr* ldns_axfr_next(ldns_resolver *resolver);
20
21 void ldns_axfr_abort(ldns_resolver *resolver);
22
23 bool ldns_axfr_complete(const ldns_resolver *resolver);
24
25 ldns_pkt* ldns_axfr_last_pkt(const ldns_resolver *res);
26
28 ldns_axfr_start() Prepares the resolver for an axfr query The query is
29 sent and the answers can be read with ldns_axfr_next
30 resolver: the resolver to use
31 domain: the domain to exfr
32 c: the class to use
33 Returns ldns_status the status of the transfer
34
35 ldns_axfr_next() Get the next stream of RRs in a AXFR
36 resolver: the resolver to use. First ldns_axfr_start() must be
37 called
38 Returns ldns_rr the next RR from the AXFR stream After you get
39 this returned RR (not NULL: on error), then check if
40 ldns_axfr_complete() is true to see if the zone transfer has
41 completed.
42
43 ldns_axfr_abort() Abort a transfer that is in progress
44 resolver: the resolver that is used
45
46 ldns_axfr_complete() Returns true if the axfr transfer has completed
47 (i.e. 2 SOA RRs and no errors were encountered
48 resolver: the resolver that is used
49 Returns bool true if axfr transfer was completed without error
50
51 ldns_axfr_last_pkt() Returns a pointer to the last ldns_pkt that was
52 sent by the server in the AXFR transfer uasable for instance to
53 get the error code on failure
54 res: the resolver that was used in the axfr transfer
55 Returns ldns_pkt the last packet sent
56
58 The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
59 Miek Gieben.
60
61
63 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
64 http://www.nlnetlabs.nl/bugs/index.html
65
66
68 Copyright (c) 2004 - 2006 NLnet Labs.
69
70 Licensed under the BSD License. There is NO warranty; not even for MER‐
71 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
72
74 perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
75
77 This manpage was automatically generated from the ldns source code by
78 use of Doxygen and some perl.
79
80
81
82 30 May 2006 ldns(3)