SYNOPSIS

#include <stdint.h>

#include <stdbool.h>

#include <ldns/ldns.h>

ldns_zone * ldns_zone_new(void);

void ldns_zone_deep_free(ldns_zone *zone);

ldns_status ldns_zone_new_frm_fp(ldns_zone **z, FILE *fp, ldns_rdf *origin, uint32_t ttl, ldns_rr_class c);

ldns_status ldns_zone_new_frm_fp_l(ldns_zone **z, FILE *fp, ldns_rdf *origin, uint32_t ttl, ldns_rr_class c, int *line_nr);

DESCRIPTION

ldns_zone_new() create a new ldns_zone structure .br Returns a pointer to a ldns_zone structure

ldns_zone_deep_free() Frees the allocated memory for the zone, the soa rr in it, and the rr_list structure in it, including the rr's in that. etc. .br zone: the zone to free

ldns_zone_new_frm_fp() Create a new zone from a file .br z: the new zone .br *fp: the filepointer to use .br *origin: the zones' origin .br ttl: default ttl to use .br c: default class to use (IN)

.br Returns ldns_status mesg with an error or LDNS_STATUS_OK

ldns_zone_new_frm_fp_l() Create a new zone from a file, keep track of the line numbering .br z: the new zone .br *fp: the filepointer to use .br *origin: the zones' origin .br ttl: default ttl to use .br c: default class to use (IN) .br line_nr: used for error msg, to get to the line number

.br Returns ldns_status mesg with an error or LDNS_STATUS_OK

AUTHOR

The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.

REPORTING BUGS

Please report bugs to [email protected] or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html

COPYRIGHT

Copyright (c) 2004 - 2006 NLnet Labs.

Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

RELATED TO ldns_zone_new…

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

REMARKS

This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl.