When you use it as vpn server, you should not use cloudflare etc. on it. Encrypted DNS is for using as client.