SysTutorials Posts

  • |

    ldns_pkt_section (3) Linux Manual Page

    NAME ldns_pkt, ldns_pkt_section, ldns_pkt_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_pkt_section();  ldns_pkt_type(); DESCRIPTION ldns_pkt DNS packet This structure contains a complete DNS packet (either a query or an answer) It is the complete representation of what you actually send to a nameserver, and what it sends back (assuming you are the client here). struct…

  • |

    ldns_pkt_rr_list_by_type (3) Linux Manual Page

    NAME ldns_pkt_id, ldns_pkt_qr, ldns_pkt_aa, ldns_pkt_tc, ldns_pkt_rd, ldns_pkt_cd, ldns_pkt_ra, ldns_pkt_ad, ldns_pkt_get_opcode, ldns_pkt_get_rcode, ldns_pkt_qdcount, ldns_pkt_ancount, ldns_pkt_nscount, ldns_pkt_arcount, ldns_pkt_answerfrom, ldns_pkt_querytime, ldns_pkt_size, ldns_pkt_tsig, ldns_pkt_question, ldns_pkt_answer, ldns_pkt_authority, ldns_pkt_additional, ldns_pkt_get_section_clone, ldns_pkt_rr_list_by_name, ldns_pkt_rr_list_by_type, ldns_pkt_rr_list_by_name_and_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_pkt_id(); bool ldns_pkt_qr(const ldns_pkt *p); bool ldns_pkt_aa(const ldns_pkt *p); bool ldns_pkt_tc(const ldns_pkt *p); bool ldns_pkt_rd(const ldns_pkt *p); bool ldns_pkt_cd(const ldns_pkt *p);…

  • |

    ldns_pkt_rr_list_by_name_and_type (3) Linux Manual Page

    NAME ldns_pkt_id, ldns_pkt_qr, ldns_pkt_aa, ldns_pkt_tc, ldns_pkt_rd, ldns_pkt_cd, ldns_pkt_ra, ldns_pkt_ad, ldns_pkt_get_opcode, ldns_pkt_get_rcode, ldns_pkt_qdcount, ldns_pkt_ancount, ldns_pkt_nscount, ldns_pkt_arcount, ldns_pkt_answerfrom, ldns_pkt_querytime, ldns_pkt_size, ldns_pkt_tsig, ldns_pkt_question, ldns_pkt_answer, ldns_pkt_authority, ldns_pkt_additional, ldns_pkt_get_section_clone, ldns_pkt_rr_list_by_name, ldns_pkt_rr_list_by_type, ldns_pkt_rr_list_by_name_and_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_pkt_id(); bool ldns_pkt_qr(const ldns_pkt *p); bool ldns_pkt_aa(const ldns_pkt *p); bool ldns_pkt_tc(const ldns_pkt *p); bool ldns_pkt_rd(const ldns_pkt *p); bool ldns_pkt_cd(const ldns_pkt *p);…

  • |

    ldns_pkt_rr_list_by_name (3) Linux Manual Page

    NAME ldns_pkt_id, ldns_pkt_qr, ldns_pkt_aa, ldns_pkt_tc, ldns_pkt_rd, ldns_pkt_cd, ldns_pkt_ra, ldns_pkt_ad, ldns_pkt_get_opcode, ldns_pkt_get_rcode, ldns_pkt_qdcount, ldns_pkt_ancount, ldns_pkt_nscount, ldns_pkt_arcount, ldns_pkt_answerfrom, ldns_pkt_querytime, ldns_pkt_size, ldns_pkt_tsig, ldns_pkt_question, ldns_pkt_answer, ldns_pkt_authority, ldns_pkt_additional, ldns_pkt_get_section_clone, ldns_pkt_rr_list_by_name, ldns_pkt_rr_list_by_type, ldns_pkt_rr_list_by_name_and_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_pkt_id(); bool ldns_pkt_qr(const ldns_pkt *p); bool ldns_pkt_aa(const ldns_pkt *p); bool ldns_pkt_tc(const ldns_pkt *p); bool ldns_pkt_rd(const ldns_pkt *p); bool ldns_pkt_cd(const ldns_pkt *p);…

  • |

    ldns_pkt_reply_type (3) Linux Manual Page

    NAME ldns_pkt_new, ldns_pkt_free, ldns_pkt_print, ldns_pkt_query_new, ldns_pkt_query_new_frm_str, ldns_pkt_reply_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_pkt* ldns_pkt_new(); void ldns_pkt_free(ldns_pkt *packet); void ldns_pkt_print(FILE *output, const ldns_pkt *pkt); ldns_pkt* ldns_pkt_query_new(ldns_rdf *rr_name, ldns_rr_type rr_type, ldns_rr_class rr_class, uint16_t flags); ldns_status ldns_pkt_query_new_frm_str(ldns_pkt **p, const char *rr_name, ldns_rr_type rr_type, ldns_rr_class rr_class , uint16_t flags); ldns_pkt_type ldns_pkt_reply_type(ldns_pkt *p); DESCRIPTION ldns_pkt_new() allocates and initializes…

  • |

    ldns_pkt_rd (3) Linux Manual Page

    NAME ldns_pkt_id, ldns_pkt_qr, ldns_pkt_aa, ldns_pkt_tc, ldns_pkt_rd, ldns_pkt_cd, ldns_pkt_ra, ldns_pkt_ad, ldns_pkt_get_opcode, ldns_pkt_get_rcode, ldns_pkt_qdcount, ldns_pkt_ancount, ldns_pkt_nscount, ldns_pkt_arcount, ldns_pkt_answerfrom, ldns_pkt_querytime, ldns_pkt_size, ldns_pkt_tsig, ldns_pkt_question, ldns_pkt_answer, ldns_pkt_authority, ldns_pkt_additional, ldns_pkt_get_section_clone, ldns_pkt_rr_list_by_name, ldns_pkt_rr_list_by_type, ldns_pkt_rr_list_by_name_and_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_pkt_id(); bool ldns_pkt_qr(const ldns_pkt *p); bool ldns_pkt_aa(const ldns_pkt *p); bool ldns_pkt_tc(const ldns_pkt *p); bool ldns_pkt_rd(const ldns_pkt *p); bool ldns_pkt_cd(const ldns_pkt *p);…

  • |

    ldns_pkt_ra (3) Linux Manual Page

    NAME ldns_pkt_id, ldns_pkt_qr, ldns_pkt_aa, ldns_pkt_tc, ldns_pkt_rd, ldns_pkt_cd, ldns_pkt_ra, ldns_pkt_ad, ldns_pkt_get_opcode, ldns_pkt_get_rcode, ldns_pkt_qdcount, ldns_pkt_ancount, ldns_pkt_nscount, ldns_pkt_arcount, ldns_pkt_answerfrom, ldns_pkt_querytime, ldns_pkt_size, ldns_pkt_tsig, ldns_pkt_question, ldns_pkt_answer, ldns_pkt_authority, ldns_pkt_additional, ldns_pkt_get_section_clone, ldns_pkt_rr_list_by_name, ldns_pkt_rr_list_by_type, ldns_pkt_rr_list_by_name_and_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_pkt_id(); bool ldns_pkt_qr(const ldns_pkt *p); bool ldns_pkt_aa(const ldns_pkt *p); bool ldns_pkt_tc(const ldns_pkt *p); bool ldns_pkt_rd(const ldns_pkt *p); bool ldns_pkt_cd(const ldns_pkt *p);…

  • |

    ldns_pkt_question (3) Linux Manual Page

    NAME ldns_pkt_id, ldns_pkt_qr, ldns_pkt_aa, ldns_pkt_tc, ldns_pkt_rd, ldns_pkt_cd, ldns_pkt_ra, ldns_pkt_ad, ldns_pkt_get_opcode, ldns_pkt_get_rcode, ldns_pkt_qdcount, ldns_pkt_ancount, ldns_pkt_nscount, ldns_pkt_arcount, ldns_pkt_answerfrom, ldns_pkt_querytime, ldns_pkt_size, ldns_pkt_tsig, ldns_pkt_question, ldns_pkt_answer, ldns_pkt_authority, ldns_pkt_additional, ldns_pkt_get_section_clone, ldns_pkt_rr_list_by_name, ldns_pkt_rr_list_by_type, ldns_pkt_rr_list_by_name_and_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_pkt_id(); bool ldns_pkt_qr(const ldns_pkt *p); bool ldns_pkt_aa(const ldns_pkt *p); bool ldns_pkt_tc(const ldns_pkt *p); bool ldns_pkt_rd(const ldns_pkt *p); bool ldns_pkt_cd(const ldns_pkt *p);…

  • |

    ldns_key_deep_free (3) Linux Manual Page

    NAME ldns_key_free, ldns_key_deep_free, ldns_key_list_free SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> void ldns_key_free(ldns_key *key); void ldns_key_deep_free(ldns_key *key); void ldns_key_list_free(ldns_key_list *key_list); DESCRIPTION ldns_key_free() frees a key structure, but not its internal data structures .br key: the key object to free ldns_key_deep_free() frees a key structure and all its internal data structures, except the data set by…

  • |

    ldns_key_buf2rsa (3) Linux Manual Page

    NAME ldns_key_buf2dsa, ldns_key_buf2rsa SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> DSA* ldns_key_buf2dsa(ldns_buffer *key); RSA* ldns_key_buf2rsa(ldns_buffer *key); DESCRIPTION ldns_key_buf2dsa() converts a buffer holding key material to a DSA key in openssl. .br key: the key to convert .br Returns a DSA * structure with the key material ldns_key_buf2rsa() converts a buffer holding key material to a…

  • |

    ldns_key_buf2dsa (3) Linux Manual Page

    NAME ldns_key_buf2dsa, ldns_key_buf2rsa SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> DSA* ldns_key_buf2dsa(ldns_buffer *key); RSA* ldns_key_buf2rsa(ldns_buffer *key); DESCRIPTION ldns_key_buf2dsa() converts a buffer holding key material to a DSA key in openssl. .br key: the key to convert .br Returns a DSA * structure with the key material ldns_key_buf2rsa() converts a buffer holding key material to a…

  • |

    ldns_key_algorithm (3) Linux Manual Page

    NAME ldns_key_rsa_key, ldns_key_dsa_key, ldns_key_algorithm, ldns_key_hmac_key SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> RSA* ldns_key_rsa_key(const ldns_key *k); DSA* ldns_key_dsa_key(const ldns_key *k); ldns_signing_algorithm ldns_key_algorithm(const ldns_key *k); unsigned char* ldns_key_hmac_key(const ldns_key *k); DESCRIPTION ldns_key_rsa_key() returns the (openssl) RSA struct contained in the key .br k: the key to look in .br Returns the RSA * structure in the…

  • |

    ldns_key2str (3) Linux Manual Page

    NAME ldns_rr2str, ldns_pkt2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> char* ldns_rr2str(const ldns_rr *rr); char* ldns_pkt2str(const ldns_pkt *pkt); char* ldns_rdf2str(const ldns_rdf *rdf); char* ldns_rr_list2str(const ldns_rr_list *rr_list); char* ldns_key2str(const ldns_key *k); DESCRIPTION ldns_rr2str() Converts the data in the resource record to presentation format and returns that as a char *. Remember to free…

  • |

    ldns_key2rr (3) Linux Manual Page

    NAME ldns_key2rr SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rr* ldns_key2rr(const ldns_key *k); DESCRIPTION ldns_key2rr() converts a ldns_key to a public key rr If the key data exists at an external point, the corresponding rdata field must still be added with ldns_rr_rdf_push() to the result rr of this function .br k: the ldns_key to convert…

  • |

    ldns_key2buffer_str (3) Linux Manual Page

    NAME ldns_pkt2buffer_str, ldns_pktheader2buffer_str, ldns_rr2buffer_str, ldns_rr_list2buffer_str, ldns_rdf2buffer_str, ldns_key2buffer_str, ldns_pkt2buffer_wire, ldns_rr2buffer_wire, ldns_rdf2buffer_wire, ldns_rrsig2buffer_wire, ldns_rr_rdata2buffer_wire SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_status ldns_pkt2buffer_str(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_pktheader2buffer_str(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_rr2buffer_str(ldns_buffer *output, const ldns_rr *rr); ldns_status ldns_rr_list2buffer_str(ldns_buffer *output, const ldns_rr_list *list); ldns_status ldns_rdf2buffer_str(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_key2buffer_str(ldns_buffer *output, const ldns_key *k);…

  • |

    ldns_key (3) Linux Manual Page

    NAME ldns_key SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h>  ldns_key(); DESCRIPTION ldns_key() AUTHOR The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS Please report bugs to ldns-team [at] nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT Copyright (c) 2004 – 2006 NLnet Labs. Licensed under the BSD…

  • |

    ldns_is_rrset (3) Linux Manual Page

    NAME ldns_is_rrset SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> bool ldns_is_rrset(ldns_rr_list *rr_list); DESCRIPTION ldns_is_rrset() checks if an rr_list is a rrset. .br rr_list: the rr_list to check .br Returns true if it is an rrset otherwise false AUTHOR The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS…

  • |

    ldns_init_random (3) Linux Manual Page

    NAME ldns_init_random SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> int ldns_init_random(FILE *fd, unsigned int size); DESCRIPTION ldns_init_random() Seed the random function. If the file descriptor is specified, the random generator is seeded with data from that file. If not, /dev/urandom is used. applications should call this if they need entropy data within ldns If openSSL…

  • |

    ldns_getaddrinfo (3) Linux Manual Page

    NAME ldns_getaddrinfo SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> uint16_t ldns_getaddrinfo(ldns_resolver *res, ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list); DESCRIPTION ldns_getaddrinfo() This function is a wrapper function for ldns_get_rr_list_name_by_addr and ldns_get_rr_list_addr_by_name. It’s name is from the getaddrinfo() library call. It tries to mimic that call, but without the lowlevel stuff. .br res: The resolver. If this…

  • |

    ldns_get_rr_type_by_name (3) Linux Manual Page

    NAME ldns_get_rr_class_by_name, ldns_get_rr_type_by_name SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rr_class ldns_get_rr_class_by_name(const char *name); ldns_rr_type ldns_get_rr_type_by_name(const char *name); DESCRIPTION ldns_get_rr_class_by_name() retrieves a class by looking up its name. .br name: string with the name .br Returns the cass which corresponds with the name ldns_get_rr_type_by_name() retrieves a rrtype by looking up its name. .br name: a…