Synopsis
void ctl_dns_set_memory_allocator(CTL_MEMORY_ALLOCATOR_t *allocator);
Description

ctl_dns_set_memory_allocator sets DNS memory allocator to allocator. If allocator is zero, the DNS cache uses the system memory allocator ctl_system_memory_allocator.

Note

Setting the memory allocator automatically clears the DNS cache and cancels any outstanding DNS resolves. We recommend that you set the DNS allocator before starting the DNS revolver.

Thread Safety

ctl_dns_set_memory_allocator is thread-safe.