I tried to use the NEDNSProxyManager to redirect the dns to my own server but failed to do that. It should be able to do that as based on Apple Documentation
A DNS proxy allows your app to intercept all DNS traffic generated on a device. You can use this capability to provide services like DNS traffic encryption, typically by redirecting DNS traffic to your own server. You usually do this in the context of managed devices, such as those owned by a school or an enterprise.
Any help is much appreciated.