dns_cache_cachenode

March 26, 2020 Contributors

This struct is defined as follows:

typedef struct _dns_cache_cachenode {
  dns_cache_query query;
  ec_atomic_t refcnt;
  u_int8_t answer_type;   /* This should match unless CNAME */
  u_int8_t answer_count;
  u_int8_t resolver_status;
  union _dns_cache_cachenode_answer {
    char **name;
    struct in_addr *ip4;
    struct in6_addr *ip6;
  } answer;
  void *__private;
  u_int64_t expiry;
  int *preference;
  pthread_cond_t cv;
  int *weight;
  int *port;
} dns_cache_cachenode;

To use this struct, include the file dns-cache.h.

See Also

“dns_cache_query”, dns_cache_free_node, dns_cache_lookup_wait, dns_cache_submit2, dns_cache_lookup, and dns_get_domain.