higher.h

Go to the documentation of this file.
00001 /*
00002  * higher.h
00003  *
00004  * Specify some higher level functions that would
00005  * be usefull to would be developers
00006  *
00007  * a Net::DNS like library for C
00008  *
00009  * (c) NLnet Labs, 2004, 2005
00010  *
00011  * See the file LICENSE for the license
00012  */
00013 
00014 #ifndef _LDNS_HIGHER_H
00015 #define _LDNS_HIGHER_H
00016 
00017 #include <ldns/resolver.h>
00018 #include <ldns/rdata.h>
00019 #include <ldns/rr.h>
00020 #include <ldns/host2str.h>
00021 #include <ldns/tsig.h>
00022 
00031 ldns_rr_list *ldns_get_rr_list_addr_by_name(ldns_resolver *r, ldns_rdf *name, ldns_rr_class c, uint16_t flags);
00032 
00041 ldns_rr_list *ldns_get_rr_list_name_by_addr(ldns_resolver *r, ldns_rdf *addr, ldns_rr_class c, uint16_t flags);
00042 
00050 ldns_rr_list *ldns_get_rr_list_hosts_frm_fp(FILE *fp);
00051 
00060 ldns_rr_list *ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);
00061 
00069 ldns_rr_list *ldns_get_rr_list_hosts_frm_file(char *filename);
00070 
00083 uint16_t ldns_getaddrinfo(ldns_resolver *res, ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list);
00084 
00088 ldns_rr_list *ldns_getaddrinfo_secure();
00089 
00090 /*
00091  * Send a "simple" update for an A or an AAAA RR.
00092  * \param[in] fqdn the update RR owner
00093  * \param[in] zone the zone to update, if set to NULL, try to figure it out
00094  * \param[in] ipaddr the address to add, if set to NULL, remove any A/AAAA RRs
00095  * \param[in] ttl the update RR TTL
00096  * \param[in] tsig_cred credentials for TSIG-protected update messages
00097  */
00098 ldns_status ldns_update_send_simple_addr(const char *fqdn, const char *zone,
00099     const char *ipaddr, u_int16_t tll, ldns_tsig_credentials *tsig_cred);
00100 
00101 #endif /* _LDNS_HIGHER_H */
00102 

Generated on Mon Feb 20 15:41:27 2006 for ldns by  doxygen 1.4.6