43 #ifndef CONFIG_DNS_CACHE_SIZE
44 #define CONFIG_DNS_CACHE_SIZE 4
50 #ifndef CONFIG_DNS_CACHE_A
51 #define CONFIG_DNS_CACHE_A IS_USED(MODULE_IPV4)
57 #ifndef CONFIG_DNS_CACHE_AAAA
58 #define CONFIG_DNS_CACHE_AAAA IS_USED(MODULE_IPV6)
61 #if IS_USED(MODULE_DNS_CACHE) || DOXYGEN
82 void dns_cache_add(
const char *domain_name,
const void *addr,
int addr_len, uint32_t ttl);
84 static inline int dns_cache_query(
const char *domain_name,
void *addr_out,
int family)
92 static inline void dns_cache_add(
const char *domain_name,
const void *addr,
93 int addr_len, uint32_t ttl)
int dns_cache_query(const char *domain_name, void *addr_out, int family)
Get IP address for a DNS name from the DNS cache.
void dns_cache_add(const char *domain_name, const void *addr, int addr_len, uint32_t ttl)
Add an IP address for a DNS name to the DNS cache.
Common macros and compiler attributes/pragmas configuration.