ldns - Online Linux Manual PageSection : 3
Updated : 30 May 2006

NAMEldns_zone, ldns_zone_new, ldns_zone_free, ldns_zone_deep_free, ldns_zone_new_frm_fp, ldns_zone_new_frm_fp_l, ldns_zone_print, ldns_zone_print_fmt − ldns_zone creation, destruction and printing

SYNOPSIS#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h> ldns_zone * ldns_zone_new(void); void ldns_zone_free(ldns_zone *zone); void ldns_zone_deep_free(ldns_zone *zone); ldns_status ldns_zone_new_frm_fp(ldns_zone **z, FILE *fp, const ldns_rdf *origin, uint32_t ttl, ldns_rr_class c); ldns_status ldns_zone_new_frm_fp_l(ldns_zone **z, FILE *fp, const ldns_rdf *origin, uint32_t ttl, ldns_rr_class c, int *line_nr); void ldns_zone_print(FILE *output, const ldns_zone *z); void ldns_zone_print_fmt(FILE *output, const ldns_output_format *fmt, const ldns_zone *z);

DESCRIPTIONldns_zone
DNS Zone

A list of RR's with some
extra information which comes from the SOA RR
Note: nothing has been done to make this efficient (yet).
struct ldns_struct_zone
{
the soa defines a zone:
ldns_rr *_soa;
/* basically a zone is a list of rr's */
ldns_rr_list *_rrs;
/* we could change this to be a b-tree etc etc todo */
};
typedef struct ldns_struct_zone ldns_zone;
ldns_zone_new() create a new ldns_zone structure
Returns a pointer to a ldns_zone structure
ldns_zone_free() Frees the allocated memory for the zone, and the rr_list structure in it
zone: the zone to free
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.
zone: the zone to free
ldns_zone_new_frm_fp() Create a new zone from a file
z: the new zone
*fp: the filepointer to use
*origin: the zones' origin
ttl: default ttl to use
c: default class to use (­IN)
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
z: the new zone
*fp: the filepointer to use
*origin: the zones' origin
ttl: default ttl to use
c: default class to use (­IN)
line_nr: used for error msg, to get to the line number
Returns ldns_status mesg with an error or ­LDNS_STATUS_OK
ldns_zone_print() Print a zone structure * to output. Note the ­SOA record is included in this output
output: the fd to print to
z: the zone to print
ldns_zone_print_fmt() Print a zone structure * to output. Note the ­SOA record is included in this output
output: the fd to print to
fmt: format of the textual representation
z: the zone to print

AUTHORThe ldns team at NLnet Labs.

REPORTING BUGSPlease report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html

COPYRIGHTCopyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSOperldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.

REMARKSThis manpage was automatically generated from the ldns source code.
0
Johanes Gumabo
Data Size   :   12,753 byte
man-ldns_zone_new.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 198,089
Visitor ID   :     :  
Visitor IP   :   18.118.33.130   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.