I have been using DNSecure which is a configuration tool for DoT/DoH and was wondering if you can add such a capability to your application, it will complete the app. You can let users configure the DNS and monitor everything too. Can be a paid feature if need be.