void ctl_dns_set_memory_allocator(CTL_MEMORY_ALLOCATOR_t *allocator);
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.
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.
ctl_dns_set_memory_allocator is thread-safe.