Go to the source code of this file.
Functions | |
ldns_rr_list * | ldns_get_rr_list_addr_by_name (ldns_resolver *r, ldns_rdf *name, ldns_rr_class c, uint16_t flags) |
Ask the resolver about name and return all address records. | |
ldns_rr_list * | ldns_get_rr_list_name_by_addr (ldns_resolver *r, ldns_rdf *addr, ldns_rr_class c, uint16_t flags) |
ask the resolver about the address and return the name | |
ldns_rr_list * | ldns_get_rr_list_hosts_frm_fp (FILE *fp) |
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there | |
ldns_rr_list * | ldns_get_rr_list_hosts_frm_fp_l (FILE *fp, int *line_nr) |
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there | |
ldns_rr_list * | ldns_get_rr_list_hosts_frm_file (char *filename) |
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there | |
uint16_t | ldns_getaddrinfo (ldns_resolver *res, ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list) |
This function is a wrapper function for ldns_get_rr_list_name_by_addr and ldns_get_rr_list_addr_by_name. | |
ldns_rr_list * | ldns_getaddrinfo_secure () |
ldns_status | ldns_update_send_simple_addr (const char *fqdn, const char *zone, const char *ipaddr, u_int16_t tll, ldns_tsig_credentials *tsig_cred) |
ldns_rr_list* ldns_get_rr_list_addr_by_name | ( | ldns_resolver * | r, | |
ldns_rdf * | name, | |||
ldns_rr_class | c, | |||
uint16_t | flags | |||
) |
Ask the resolver about name and return all address records.
[in] | r | the resolver to use |
[in] | name | the name to look for |
[in] | c | the class to use |
[in] | flags | give some optional flags to the query |
ldns_rr_list* ldns_get_rr_list_hosts_frm_file | ( | char * | filename | ) |
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there
[in] | filename | the filename to use (NULL for /etc/hosts) |
ldns_rr_list* ldns_get_rr_list_hosts_frm_fp | ( | FILE * | fp | ) |
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there
[in] | fp | the file pointer to use |
ldns_rr_list* ldns_get_rr_list_hosts_frm_fp_l | ( | FILE * | fp, | |
int * | line_nr | |||
) |
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in there
[in] | fp | the file pointer to use |
[in] | line_nr | pointer to an integer containing the current line number (for debugging purposes) |
ldns_rr_list* ldns_get_rr_list_name_by_addr | ( | ldns_resolver * | r, | |
ldns_rdf * | addr, | |||
ldns_rr_class | c, | |||
uint16_t | flags | |||
) |
ask the resolver about the address and return the name
[in] | r | the resolver to use |
[in] | addr | the addr to look for |
[in] | c | the class to use |
[in] | flags | give some optional flags to the query |
uint16_t ldns_getaddrinfo | ( | ldns_resolver * | res, | |
ldns_rdf * | node, | |||
ldns_rr_class | c, | |||
ldns_rr_list ** | list | |||
) |
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.
[in] | res | The resolver. If this value is NULL then a resolver will be created by ldns_getaddrinfo. |
[in] | node | the name or ip address to look up |
[in] | c | the class to look in |
[out] | list | put the found RR's in this list |
ldns_rr_list* ldns_getaddrinfo_secure | ( | ) |
ldns_status ldns_update_send_simple_addr | ( | const char * | fqdn, | |
const char * | zone, | |||
const char * | ipaddr, | |||
u_int16_t | tll, | |||
ldns_tsig_credentials * | tsig_cred | |||
) |