ldns_rr_new() creates a new rr structure.
Returns ldns_rr *
ldns_rr_new_frm_type() creates a new rr structure, based on the given type. alloc enough
space to hold all the rdf's
ldns_rr_new_frm_str() creates an rr from a string. The string should be a fully filled-in
rr, like ownername <space> TTL <space> CLASS <space> TYPE
n: the rr to return
str: the string to convert
default_ttl: default ttl value for the rr. If 0 DEF_TTL will be used
origin: when the owner is relative add this. The caller must ldns_rdf_deep_free
prev: the previous ownername. if this value is not NULL, the function overwrites
this with the ownername found in this string. The caller must then
Returns a status msg describing an error or LDNS_STATUS_OK
ldns_rr_new_frm_fp() creates a new rr from a file containing a string.
rr: the new rr
fp: the file pointer to use
default_ttl: pointer to a default ttl for the rr. If NULL DEF_TTL will be used the
pointer will be updated if the file contains a $TTL directive
origin: when the owner is relative add this the pointer will be updated if the file
contains a $ORIGIN directive The caller must ldns_rdf_deep_free it.
prev: when the owner is whitespaces use this as the * ownername the pointer will be
updated after the call The caller must ldns_rdf_deep_free it.
Returns a ldns_status with an error or LDNS_STATUS_OK
ldns_rr_free() frees an RR structure
*rr: the RR to be freed
ldns_rr_print() Prints the data in the resource record to the given file stream (in pre‐
output: the file stream to print to
rr: the resource record to print
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.
Please report bugs to @nlnetlabs.nl or in our bugzilla at http://www.nlnet‐
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FIT‐
NESS FOR A PARTICULAR PURPOSE.
ldns_rr, ldns_rr_list. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and
This manpage was automatically generated from the ldns source code by use of Doxygen and
some perl. 30 May 2006 ldns(3)